Open
Description
I may be wrong but with the example above:
can(Actions.update, Post, { userId: user.id });
if userId
does not exist in the Subject, Typescript should complain about it. But for the moment the condition matcher seems to be typed as any.
In the CASL lib it seems that its typed as conditions?: MongoQuery<Subject>
Metadata
Metadata
Assignees
Labels
No labels