DT
Drizzle Team•16mo ago
xamarot

Omit fields on "$inferSelect"?

Let's say I have a table with 5 columns, I want to do type TableType = typeof theTable.$inferSelect; but omit some fields. How do I do that?
2 Replies
Nick
Nick•16mo ago
Omit<T, K> which comes in typescript 🙂
xamarot
xamarotOP•16mo ago
Ah thanks

Did you find this page helpful?