© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago
Xpecial Poo

Possible to have type from enum value?

Has you can see i am filtering all my users by type "clinician", supposedly its 100% sure that the output of this would be that the user type is "clinician", but it still picks up the other enum possibilities, is it possible to make it understand in the type inference that the user type will only be "clinician"?
image.png
image.png
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get plain typescript type from enum
Drizzle TeamDTDrizzle Team / help
3y ago
How to narrow type in select from enum?
Drizzle TeamDTDrizzle Team / help
2y ago
Enum Type Creation
Drizzle TeamDTDrizzle Team / help
15mo ago
Possible to infere type from PgEnum?
Drizzle TeamDTDrizzle Team / help
16mo ago