You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2025. It is now read-only.
I am trying to use d1-orm and the model setup.
I created a model:
My expectation is that then, I can infer the type and it'd know that the
idfield is kind of optional for inserts and stuff like that?But doing
type UserChats = Infer<typeof models.user_chats>Followed by a definition if said object:
Shows the type error:
I'd hoped that this would just work? Am I missing something? Do I have to update my code somehow to be able to use types with that?