Invalid type inference when using helpers
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 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
1 Reply
I feel like your code is fine and it shouldn't be showing an
any
for the type of any of those object keys. I'm assuming you've updated TS to the latest and restarted you language server and editor?
And made sure editor is actually using the latest