Skip to content

fix: use union type in addConstraint #1228

fix: use union type in addConstraint

fix: use union type in addConstraint #1228

Re-run triggered May 6, 2024 07:31
Status Failure
Total duration 43s
Artifacts

ci.yml

on: pull_request
Lint: node-20, ubuntu-latest
33s
Lint: node-20, ubuntu-latest
TS-Check: node-20, ubuntu-latest
15s
TS-Check: node-20, ubuntu-latest
Matrix: create-migration-test
Matrix: unit-test
Fit to window
Zoom out
Zoom in

Annotations

6 errors
TS-Check: node-20, ubuntu-latest: test/operations/constraints/addConstraint.spec.ts#L16
Argument of type '{}' is not assignable to parameter of type 'ConstraintOptions & IfExistsOption & CascadeOption & string'.
TS-Check: node-20, ubuntu-latest: test/operations/constraints/addConstraint.spec.ts#L24
Argument of type '{ check: string[]; exclude: string; deferrable: true; }' is not assignable to parameter of type 'ConstraintOptions & IfExistsOption & CascadeOption & string'.
TS-Check: node-20, ubuntu-latest: test/operations/constraints/addConstraint.spec.ts#L128
Argument of type '{ readonly primaryKey: "colA"; readonly comment: "this is an important primary key"; } | { readonly primaryKey: "colA"; readonly comment: "this is an important primary key"; }' is not assignable to parameter of type 'ConstraintOptions & IfExistsOption & CascadeOption & string'.
TS-Check: node-20, ubuntu-latest: test/operations/constraints/addConstraint.spec.ts#L144
Argument of type '{}' is not assignable to parameter of type 'ConstraintOptions & IfExistsOption & CascadeOption & string'.
TS-Check: node-20, ubuntu-latest: test/operations/constraints/addConstraint.spec.ts#L155
Argument of type '{}' is not assignable to parameter of type 'ConstraintOptions & IfExistsOption & CascadeOption & string'.
TS-Check: node-20, ubuntu-latest
Process completed with exit code 2.