How to have type-safe for tuple of action and subject #729
KingMatrix1989
started this conversation in
General
Replies: 1 comment
-
did you try ? :) const pageAbility: AppAbilities = ['edit', 'User']; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. Consider we have the following abilities:
I need to have a safe type for a tuple of Action & Subject.
So when I do as below:
I expect to get a typescript error here
Beta Was this translation helpful? Give feedback.
All reactions