You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The not attribute for the types CanProps and CanPropsStrict in @casl/react is defined as mandatory. From looking at the examples it seems this attribute should be optional.
The following should be possible (taken from project readme)
The not attribute for the types CanProps and CanPropsStrict in @casl/react is defined as mandatory. From looking at the examples it seems this attribute should be optional.
The following should be possible (taken from project readme)
The above will result in a type error as the not attribute is missing.
With the current type definitions you have to write it as follows
The text was updated successfully, but these errors were encountered: