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•2y ago
Omit<T, K> which comes in typescript 🙂
xamarot
xamarotOP•2y ago
Ah thanks

Did you find this page helpful?