Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve types #3

Open
dziraf opened this issue Oct 18, 2021 · 1 comment
Open

Improve types #3

dziraf opened this issue Oct 18, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@dziraf
Copy link
Collaborator

dziraf commented Oct 18, 2021

We were unable to find some types by importing them from @prisma/client, examples:
https://github.com/SoftwareBrothers/adminjs-prisma/blob/main/src/types.ts#L4
https://github.com/SoftwareBrothers/adminjs-prisma/blob/main/src/Resource.ts#L30

Find out if there are generic types for model functions and if there's a built-in Prisma client type which includes _dmmf.

@dziraf dziraf added the enhancement New feature or request label Oct 18, 2021
@millsp
Copy link

millsp commented Oct 20, 2021

We don't have generic types for model functions right now as these are generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants