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

typeof with non-ident not yet supported #1679

Open
guigaribalde opened this issue Jan 3, 2025 · 0 comments
Open

typeof with non-ident not yet supported #1679

guigaribalde opened this issue Jan 3, 2025 · 0 comments

Comments

@guigaribalde
Copy link

image
When using drizzle and infering types, i get this error. Is this on the radar?
Here you have a minimal example of a type:

const ExampleTable = pgTable('example', t => ({
  id: t.uuid().notNull().primaryKey().defaultRandom(),
  example: t.varchar({ length: 256 }).notNull(),
}));

type Example = InferSelectModel<typeof ExampleTable>; // this cannot be used as an api type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant