Skip to content

[types] Fix type errors in codebase #457

[types] Fix type errors in codebase

[types] Fix type errors in codebase #457

Triggered via pull request July 7, 2024 18:18
Status Success
Total duration 46s
Artifacts

lint.yml

on: pull_request
Lint & Test Types
37s
Lint & Test Types
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint & Test Types: src/Type.js#L124
A spread argument must either have a tuple type or be passed to a rest parameter.
Lint & Test Types: src/deltaE.js#L18
Type '{}' is not assignable to type '"76" | "Jz" | "HCT" | "CMC" | "2000" | "ITP" | "OK" | "OK2" | ({ method: "76" | "Jz" | "HCT" | "CMC" | "2000" | "ITP" | "OK" | "OK2"; } & Record<string, any>)'.
Lint & Test Types: src/interpolation.js#L26
This overload signature is not compatible with its implementation signature.
Lint & Test Types: src/interpolation.js#L196
Argument of type 'any[]' is not assignable to parameter of type 'Ref'.
Lint & Test Types: src/interpolation.js#L196
Argument of type 'any[]' is not assignable to parameter of type 'Ref'.
Lint & Test Types: src/interpolation.js#L207
Argument of type 'any[]' is not assignable to parameter of type 'Ref'.
Lint & Test Types: src/interpolation.js#L208
Argument of type 'any[]' is not assignable to parameter of type 'Ref'.
Lint & Test Types: src/multiply-matrices.js#L20
Property 'length' does not exist on type 'number | number[]'.
Lint & Test Types: src/multiply-matrices.js#L21
Property 'map' does not exist on type 'number | number[]'.
Lint & Test Types: src/parse.js#L49
Property 'findFormat' does not exist on type 'typeof ColorSpace'.