fix: simplified types #559
Annotations
10 errors
|
tests/relations.test.ts > relationships > relationships - one-to-many:
tests/relations.test.ts#L619
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:619:17
|
|
tests/relations.test.ts > relationships > relationships - one-to-one-foreign-key:
tests/relations.test.ts#L451
TypeCheckError: Argument of type '{ readonly users ZeroTableBuilderSchema<"users", PgTableWithColumns<{ name "users"; schema undefined; columns { id PgColumn<{ name "id"; tableName "users"; dataType "string"; columnType "PgText"; data string; driverParam string; notNull true; ... 7 more ...; generated undefined; }, {}, {}>; name PgColu...' is not assignable to parameter of type '"❌ Left type is not assignable to right type"'.
❯ tests/relations.test.ts:451:7
|
|
tests/relations.test.ts > relationships > relationships - one-to-one-foreign-key:
tests/relations.test.ts#L445
TypeCheckError: Argument of type '{ readonly users ZeroTableBuilderSchema<"users", PgTableWithColumns<{ name "users"; schema undefined; columns { id PgColumn<{ name "id"; tableName "users"; dataType "string"; columnType "PgText"; data string; driverParam string; notNull true; ... 7 more ...; generated undefined; }, {}, {}>; name PgColu...' is not assignable to parameter of type '"❌ Left type is not assignable to right type"'.
❯ tests/relations.test.ts:445:17
|
|
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
|