fix: simplified types #560
Annotations
10 errors
|
tests/relations.test.ts > relationships > relationships - one-to-one:
tests/relations.test.ts#L374
TypeCheckError: Argument of type '{ readonly users ZeroTableBuilderSchema<"users", PgTableWithColumns<{ name "user"; schema undefined; columns { id PgColumn<{ name "id"; tableName "user"; dataType "string"; columnType "PgText"; data string; driverParam string; notNull true; ... 7 more ...; generated undefined; }, {}, {}>; name PgColumn...' is not assignable to parameter of type '"❌ Left type is not assignable to right type"'.
❯ tests/relations.test.ts:374:17
|
|
tests/relations.test.ts > relationships > relationships - one-to-one:
tests/relations.test.ts#L369
TypeCheckError: Argument of type '{ readonly users ZeroTableBuilderSchema<"users", PgTableWithColumns<{ name "user"; schema undefined; columns { id PgColumn<{ name "id"; tableName "user"; dataType "string"; columnType "PgText"; data string; driverParam string; notNull true; ... 7 more ...; generated undefined; }, {}, {}>; name PgColumn...' is not assignable to parameter of type '"❌ Left type is not assignable to right type"'.
❯ tests/relations.test.ts:369:7
|
|
tests/relations.test.ts > relationships > relationships - one-to-one:
tests/relations.test.ts#L365
TypeCheckError: Argument of type '{ readonly users ZeroTableBuilderSchema<"users", PgTableWithColumns<{ name "user"; schema undefined; columns { id PgColumn<{ name "id"; tableName "user"; dataType "string"; columnType "PgText"; data string; driverParam string; notNull true; ... 7 more ...; generated undefined; }, {}, {}>; name PgColumn...' is not assignable to parameter of type '"❌ Left type is not assignable to right type"'.
❯ tests/relations.test.ts:365:17
|
|
tests/relations.test.ts > relationships > relationships - one-to-one self-referential:
tests/relations.test.ts#L306
TypeCheckError: Argument of type '{ readonly users ZeroTableBuilderSchema<"users", PgTableWithColumns<{ name "user"; schema undefined; columns { id PgColumn<{ name "id"; tableName "user"; dataType "string"; columnType "PgText"; data string; driverParam string; notNull true; ... 7 more ...; generated undefined; }, {}, {}>; name PgColumn...' is not assignable to parameter of type '"❌ Left type is not assignable to right type"'.
❯ tests/relations.test.ts:306:17
|
|
tests/relations.test.ts > relationships > relationships - one-to-one self-referential:
tests/relations.test.ts#L301
TypeCheckError: Argument of type '{ readonly users ZeroTableBuilderSchema<"users", PgTableWithColumns<{ name "user"; schema undefined; columns { id PgColumn<{ name "id"; tableName "user"; dataType "string"; columnType "PgText"; data string; driverParam string; notNull true; ... 7 more ...; generated undefined; }, {}, {}>; name PgColumn...' is not assignable to parameter of type '"❌ Left type is not assignable to right type"'.
❯ tests/relations.test.ts:301:7
|
|
tests/relations.test.ts > relationships > relationships - one-to-one self-referential:
tests/relations.test.ts#L297
TypeCheckError: Argument of type '{ readonly users ZeroTableBuilderSchema<"users", PgTableWithColumns<{ name "user"; schema undefined; columns { id PgColumn<{ name "id"; tableName "user"; dataType "string"; columnType "PgText"; data string; driverParam string; notNull true; ... 7 more ...; generated undefined; }, {}, {}>; name PgColumn...' is not assignable to parameter of type '"❌ Left type is not assignable to right type"'.
❯ tests/relations.test.ts:297:17
|
|
tests/relations.test.ts > relationships > relationships - importing a zero schema instead of a drizzle schema:
tests/relations.test.ts#L44
TypeCheckError: Object literal may only specify known properties, and 'users' does not exist in type 'Partial<{ readonly relationships ColumnsConfig<any>; }>'.
❯ tests/relations.test.ts:44:11
|
|
tests/cli.test.ts > getGeneratedSchema > should add .js file extensions to imports when jsFileExtension is true:
tests/cli.test.ts#L440
TypeCheckError: Type '"integer"' is not assignable to type 'ValueType'.
❯ tests/cli.test.ts:440:19
|
|
tests/cli.test.ts > getGeneratedSchema > should handle different directory structures for import paths:
tests/cli.test.ts#L392
TypeCheckError: Type '"integer"' is not assignable to type 'ValueType'.
❯ tests/cli.test.ts:392:21
|
|
tests/cli.test.ts > getGeneratedSchema > should generate schema from one-to-one.zero.ts:
tests/cli.test.ts#L52
TypeCheckError: Type '"integer"' is not assignable to type 'ValueType'.
❯ tests/cli.test.ts:52:19
|