Skip to content

@uppy/core: migrate to TS #5964

@uppy/core: migrate to TS

@uppy/core: migrate to TS #5964

Triggered via pull request December 7, 2023 09:28
@MurderlonMurderlon
synchronize #4811
ts-core
Status Failure
Total duration 1m 33s
Artifacts

ci.yml

on: pull_request
Matrix: Unit tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Type tests: packages/@uppy/core/src/Restricter.ts#L186
Generic type 'RestrictionError<M, B>' requires 2 type argument(s).
Type tests: packages/@uppy/core/src/Uppy.ts#L358
Expected 3 arguments, but got 4.
Type tests: packages/@uppy/core/src/Uppy.ts#L682
Argument of type '{ message: string; isUserFacing?: boolean | undefined; details?: string | undefined; isRestriction?: boolean | undefined; file?: UppyFile<M, B> | undefined; }' is not assignable to parameter of type 'Error'.
Type tests: packages/@uppy/core/src/Uppy.ts#L684
Expected 4 arguments, but got 2.
Type tests: packages/@uppy/core/src/Uppy.ts#L1092
Argument of type 'string | undefined' is not assignable to parameter of type 'FileRemoveReason'.
Type tests: packages/@uppy/core/src/Uppy.ts#L1141
Expected 2 arguments, but got 1.
Type tests: packages/@uppy/core/src/Uppy.ts#L1163
Expected 2 arguments, but got 1.
Type tests: packages/@uppy/core/src/Uppy.ts#L1201
Expected 1 arguments, but got 2.
Type tests: packages/@uppy/core/src/Uppy.ts#L1580
Argument of type '"is-offline"' is not assignable to parameter of type 'keyof UppyEventMap<M, B>'.