8000 Custom condition matcher not typed with subject type · Issue #999 · getjerry/nest-casl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Custom condition matcher not typed with subject type #999
Open
@Triskae

Description

@Triskae

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0