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'm getting an error on .select that my types don't match, although I have exact types listed as below:
Argument of type 'TSelectColumns' is not assignable to parameter of type 'SelectedFields'.
'string' index signatures are incompatible.
Type 'SelectedFields' is not assignable to type 'SQL<unknown> | Aliased<unknown> | PgColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}> | PgTable<TableConfig> | SelectedFieldsFlat<...>'.
Type 'SelectedFields' is missing the following properties from type 'PgColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>': table, _, name, primary, and 16 more.ts(2345)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make a generic base repository which will be a wrapper around drizzle. I have
baseRepository
like:and my typings look like this:
I'm getting an error on .select that my types don't match, although I have exact types listed as below:
What could I be doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions