Convert to TypeScript #42
Annotations
12 errors
pack
Type 'string | undefined' is not assignable to type 'string'.
|
pack
Type '{ process: execa.ExecaChildProcess<string> | undefined; urlPromise: Promise<string>; close: () => Promise<void>; }' is not assignable to type 'CreateTunnelResult' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
pack
Argument of type '{ path: string | undefined; client: Transloadit; assemblyId: any; }' is not assignable to parameter of type '{ path?: string; client: Transloadit; assemblyId: string; }' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
pack
Type 'Promise<{ count: number; items: number[]; } | undefined>' is not assignable to type 'PaginationList<number> | PromiseLike<PaginationList<number>>'.
|
pack
Argument of type '{ count: number; items: number[]; } | undefined' is not assignable to parameter of type 'PaginationList<number> | PromiseLike<PaginationList<number>>'.
|
pack
Process completed with exit code 1.
|
typescript:
test/tunnel.ts#L72
Type 'string | undefined' is not assignable to type 'string'.
|
typescript:
test/tunnel.ts#L133
Type '{ process: execa.ExecaChildProcess<string> | undefined; urlPromise: Promise<string>; close: () => Promise<void>; }' is not assignable to type 'CreateTunnelResult' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
typescript:
test/integration/live-api.test.ts#L603
Argument of type '{ path: string | undefined; client: Transloadit; assemblyId: any; }' is not assignable to parameter of type '{ path?: string; client: Transloadit; assemblyId: string; }' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
typescript:
test/unit/test-pagination-stream.test.ts#L30
Type 'Promise<{ count: number; items: number[]; } | undefined>' is not assignable to type 'PaginationList<number> | PromiseLike<PaginationList<number>>'.
|
typescript:
test/unit/test-pagination-stream.test.ts#L57
Argument of type '{ count: number; items: number[]; } | undefined' is not assignable to parameter of type 'PaginationList<number> | PromiseLike<PaginationList<number>>'.
|
typescript
Process completed with exit code 2.
|