Sergii Stotskyi

Results 239 comments of Sergii Stotskyi

The 1st parameter is string in order make restrictions on action parameter using literal at types

Also check this cookbook guide https://casl.js.org/v6/en/cookbook/intro

There are also integration tests for API -> https://github.com/stalniy/casl-examples/tree/master/packages/express-blog/spec which can be used to validate new implementation

How can you use prisma without @prisma/client? When you define prisma schema you need to generate corresponding stuff out of it (i.e., client)

Any thoughts on how to support this? I see 2 options: 1. Additional cli script to run which will replace `@prisma/client` with specified dependency 2. Fake dependency which can be...

I need this direct dependency in order to provide proper typesafety for conditions you specify during Ability definition. There is no other way to get all that except of reimplementing...

Please check [@casl/[email protected]](https://www.npmjs.com/package/@casl/prisma/v/2.0.0-alpha.3) and let me know whether it works for you.

Contributions are very welcome. Very unlikely that I’ll be able to do this in the nearest future

Hi, Thanks for the issue. Prisma is an interesting project I’ll need to investigate it. Meantime PRs or implementation suggestions are very welcome