Skip to content

fix: simplified types #558

fix: simplified types

fix: simplified types #558

Triggered via pull request July 29, 2025 02:19
Status Failure
Total duration 2m 16s
Artifacts

test-and-build.yml

on: pull_request
Matrix: test-and-build
Fit to window
Zoom out
Zoom in

Annotations

10 errors
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 '"❌ Right type is not assignable to left 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 '"❌ Right type is not assignable to left 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 '"❌ Right type is not assignable to left 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 '"❌ Right type is not assignable to left 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 '"❌ Right type is not assignable to left 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 '"❌ Right type is not assignable to left 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 '"❌ Right type is not assignable to left type"'. ❯ tests/relations.test.ts:297:17
tests/cli.test.ts > getGeneratedSchema > should handle schema with empty entries correctly: tests/cli.test.ts#L239
TypeCheckError: Type '{ name string; primaryKey [string]; columns {}; }' is not assignable to type 'ZeroTableBuilderSchema<string, any, DefaultColumnsConfig<any>, undefined> & { _type DefaultColumnsConfig<any>; }'. Property '_type' is missing in type '{ name string; primaryKey [string]; columns {}; }' but required in type '{ _type DefaultColumnsConfig<any>; }'. ❯ tests/cli.test.ts:239:9
tests/cli.test.ts > getGeneratedSchema > should handle schema with empty entries correctly: tests/cli.test.ts#L228
TypeCheckError: Type '{ name string; primaryKey [string]; columns { id { type string; optional false; customType null; }; }; }' is not assignable to type 'ZeroTableBuilderSchema<string, any, DefaultColumnsConfig<any>, undefined> & { _type DefaultColumnsConfig<any>; }'. Property '_type' is missing in type '{ name string; primaryKey [string]; columns { id { type string; optional false; customType null; }; }; }' but required in type '{ _type DefaultColumnsConfig<any>; }'. ❯ tests/cli.test.ts:228:9
tests/cli.test.ts > getGeneratedSchema > should handle complex schema properties correctly: tests/cli.test.ts#L104
TypeCheckError: Type '{ name string; primaryKey [string]; columns { customTypeJson { type string; optional false; customType null; }; }; }' is not assignable to type 'ZeroTableBuilderSchema<string, any, DefaultColumnsConfig<any>, undefined> & { _type DefaultColumnsConfig<any>; }'. Property '_type' is missing in type '{ name string; primaryKey [string]; columns { customTypeJson { type string; optional false; customType null; }; }; }' but required in type '{ _type DefaultColumnsConfig<any>; }'. ❯ tests/cli.test.ts:104:9