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 get the following typescript error in the .where() clause for filters.status:
Argument of type 'ColumnType<"PENDING", "PENDING" | undefined, "PENDING"> | ColumnType<"APPROVED", "APPROVED" | undefined, "APPROVED"> | ColumnType<"REJECTED", "REJECTED" | undefined, "REJECTED">' is not assignable to parameter of type 'OperandValueExpressionOrList<DB, "Reviews", "status">'.
Type 'ColumnType<"PENDING", "PENDING" | undefined, "PENDING">' is not assignable to type 'OperandValueExpressionOrList<DB, "Reviews", "status">'.
And similar for filters.isDeleted:
Argument of type 'ColumnType<false, false | undefined, false> | ColumnType<true, true | undefined, true>' is not assignable to parameter of type 'OperandValueExpressionOrList<DB, "Reviews", "isDeleted">'.
Type 'ColumnType<false, false | undefined, false>' is not assignable to type 'OperandValueExpressionOrList<DB, "Reviews", "isDeleted">'.
Am I missing something? Ideally these would generate as:
Any fields with default values get this
Generated<>
wrapper around them in the generated types:If I use this type to create a filters type:
And then try to use this in a query:
I get the following typescript error in the
.where()
clause forfilters.status
:And similar for
filters.isDeleted
:Am I missing something? Ideally these would generate as:
Or there would be a config option to lose the
Generated<>
and just get those base types.The text was updated successfully, but these errors were encountered: