feat: narrow type based on status code #1863
Annotations
13 errors
lint
Process completed with exit code 1.
|
test-node-versions (20)
Type '(init: Init) => Promise<NonNullable<ParseAsResponse<GetResponseContent<ResponseObjectMap<Paths[Path][Method]>, Media, "2XX">, Init>> | NonNullable<...>>' is not assignable to type 'MutationFunction<Response["data"], Init>'.
|
test-node-versions (20)
Process completed with exit code 2.
|
test-node-versions (18)
The job was canceled because "_20" failed.
|
test-node-versions (18)
Type '(init: Init) => Promise<NonNullable<ParseAsResponse<GetResponseContent<ResponseObjectMap<Paths[Path][Method]>, Media, "2XX">, Init>> | NonNullable<...>>' is not assignable to type 'MutationFunction<Response["data"], Init>'.
|
test-node-versions (18)
Process completed with exit code 2.
|
test-node-versions (22)
The job was canceled because "_20" failed.
|
test-node-versions (22)
Type '(init: Init) => Promise<NonNullable<ParseAsResponse<GetResponseContent<ResponseObjectMap<Paths[Path][Method]>, Media, "2XX">, Init>> | NonNullable<...>>' is not assignable to type 'MutationFunction<Response["data"], Init>'.
|
test-node-versions (22)
The operation was canceled.
|
test-macos
Type '(init: Init) => Promise<NonNullable<ParseAsResponse<GetResponseContent<ResponseObjectMap<Paths[Path][Method]>, Media, "2XX">, Init>> | NonNullable<...>>' is not assignable to type 'MutationFunction<Response["data"], Init>'.
|
test-macos
Process completed with exit code 2.
|
test-windows
Type '(init: Init) => Promise<NonNullable<ParseAsResponse<GetResponseContent<ResponseObjectMap<Paths[Path][Method]>, Media, "2XX">, Init>> | NonNullable<...>>' is not assignable to type 'MutationFunction<Response["data"], Init>'.
|
test-windows
Process completed with exit code 1.
|