A Vue composable is a function usually structured this way:
const useUserRole = (user: User) => {
const isAdmin = computed(() => user.role === UsersRole.ADMIN);
const isRegularUser = computed(() => user.role === UsersRole.REGULAR);
return {
isAdmin,
isRegularUser,
};
};
If isRegularUser
is never exported in another file, ex.
const { isAdmin } = useUserRole();
could Knip detect it?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too