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

Internal request: have a way to get types string from dmmf #11295

Closed
millsp opened this issue Jan 20, 2022 · 1 comment · Fixed by #11450
Closed

Internal request: have a way to get types string from dmmf #11295

millsp opened this issue Jan 20, 2022 · 1 comment · Fixed by #11450
Assignees
Labels
kind/feature A request for a new feature. team/client Issue for team Client. tech/typescript Issue for tech TypeScript. topic: client types Types in Prisma Client topic: generator
Milestone

Comments

@millsp
Copy link
Member

millsp commented Jan 20, 2022

To summarize, we want expose a tool that does DMMF -> index.d.ts string for the PDP (avoiding generate through the CLI). Not a public / documented API.

@millsp millsp changed the title Internal request: have a way to get types from dmmf Internal request: have a way to get types string from dmmf Jan 20, 2022
@millsp millsp added kind/feature A request for a new feature. team/client Issue for team Client. tech/typescript Issue for tech TypeScript. topic: generator topic: client types Types in Prisma Client labels Jan 20, 2022
@jasonkuhrt
Copy link
Member

jasonkuhrt commented Jan 20, 2022

If acceptable something that doesn't require any or @ts-expect-error. I think an undocumented sub-module like e.g. import ... from @prisma/client/_/utils would be ok.

@millsp millsp linked a pull request Jan 28, 2022 that will close this issue
@Jolg42 Jolg42 added this to the 3.9.0 milestone Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature. team/client Issue for team Client. tech/typescript Issue for tech TypeScript. topic: client types Types in Prisma Client topic: generator
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants