snorlax
DTDrizzle Team
•Created by snorlax on 10/3/2023 in #help
Schema Type Issue: Property 'user' is incompatible with index signature.
4 replies
DTDrizzle Team
•Created by Jokerz on 10/2/2023 in #help
are timezones saved as utc? for pg
set the node timezone to UTC
2 replies
DTDrizzle Team
•Created by snorlax on 10/3/2023 in #help
Schema Type Issue: Property 'user' is incompatible with index signature.
Complete error trace from tsc
4 replies
DTDrizzle Team
•Created by snorlax on 10/3/2023 in #help
Schema Type Issue: Property 'user' is incompatible with index signature.
Type 'typeof import("/home/niraj/Documents/codeforreal-lms/server/src/db/models/index")' is not assignable to type 'Record<string, never>'.
Property 'user' is incompatible with index signature.
Type 'MySqlTableWithColumns<{ name: "user"; schema: undefined; columns: { id: MySqlColumn<{ name: "id"; tableName: "user"; dataType: "number"; columnType: "MySqlInt"; data: number; driverParam: string | number; notNull: true; hasDefault: true; enumValues: undefined; baseColumn: never; }, object>; ... 8 more ...; credentia...' is not assignable to type 'never'.ts(2322)
Translation
Type 'typeof import("/home/niraj/Documents/codeforreal-lms/server/src/db/models/index")' is not assignable to type 'Record<string, never>'.
I was expecting a type matching Record<string, never>, but instead you passed typeof import("/home/niraj/Documents/codeforreal-lms/server/src/db/models/index").
Property 'user' is incompatible with index signature.
Request a translation for #2530
Type 'MySqlTableWithColumns<{ name: "user"; schema: undefined; columns: { id: MySqlColumn<{ name: "id"; tableName: "user"; dataType: "number"; columnType: "MySqlInt"; data: number; driverParam: string | number; notNull: true; hasDefault: true; enumValues: undefined; baseColumn: never; }, object>; ... 8 more ...; credentia...' is not assignable to type 'never'.
I was expecting a type matching never, but instead you passed MySqlTableWithColumns<{ name: "user"; schema: undefined; columns: { id: MySqlColumn<{ name: "id"; tableName: "user"; dataType: "number"; columnType: "MySqlInt"; data: number; driverParam: string | number; notNull: true; hasDefault: true; enumValues: undefined; baseColumn: never; }, object>; ... 8 more ...; credentia....
4 replies