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
i exported the types from my packages/db which has correct types. however the query i return, returns type any for the fields where i used the helpers. if i switch back to normally typing the column type instead of a helper it gives correct types
exportconstwaitlistMember=sqliteTable("waitlist_members",{id: text().primaryKey().$defaultFn(()=>crypto.randomUUID()),
...
});// ^^^^ this returns type `string` when results of query is returnedexportconstwaitlistMember=sqliteTable("waitlist_members",{id: primaryKey(),name: text().notNull(),email: text().unique().notNull(),joined_at: timestamp(),});// ^^^^ this returns type `any` when results of query is returned
The text was updated successfully, but these errors were encountered:
Report hasn't been filed before.
What version of
drizzle-orm
are you using?^0.38.3
What version of
drizzle-kit
are you using?^0.30.1
Other packages
No response
Describe the Bug
im using helpers for primaryKey and current timestamp
column.helper.ts
im using helpers for primaryKey and current timestamp
column.helper.ts
schema.ts
i exported the types from my
packages/db
which has correct types. however the query i return, returns typeany
for the fields where i used the helpers. if i switch back to normally typing the column type instead of a helper it gives correct typesThe text was updated successfully, but these errors were encountered: