fix: use union type in addConstraint #1228
ci.yml
on: pull_request
Lint: node-20, ubuntu-latest
33s
TS-Check: node-20, ubuntu-latest
15s
Matrix: create-migration-test
Matrix: unit-test
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.
|