fix bad inference with an overload? #6617
tests.yml
on: push
Check for changes
5s
Matrix: build
Matrix: Check package config with are-the-types-wrong
Matrix: Test against dist
Matrix: test-published-artifact
Matrix: test-type-portability
Matrix: test-types
Annotations
90 errors
Test Types with TypeScript 5.3
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.3
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.3
Type '{ data: Transformed; } | { error: SerializedError | FetchBaseQueryError; }' does not satisfy the constraint '{ error: "Expected: never, Actual: unknown"; data: "Expected: never, Actual: undefined" | "Expected: never, Actual: ..."; }'.
|
Test Types with TypeScript 5.3
'response' is of type 'unknown'.
|
Test Types with TypeScript 5.3
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.3
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.3
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.3
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.3
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.3
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 4.9
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.9
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.9
Type '{ data: Transformed; } | { error: SerializedError | FetchBaseQueryError; }' does not satisfy the constraint '{ error: "Expected: never, Actual: unknown"; data: "Expected: never, Actual: undefined" | "Expected: never, Actual: ..."; }'.
|
Test Types with TypeScript 4.9
'response' is of type 'unknown'.
|
Test Types with TypeScript 4.9
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.9
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.9
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.9
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.9
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 4.9
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.4
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.4
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.4
Type '{ data: Transformed; } | { error: SerializedError | FetchBaseQueryError; }' does not satisfy the constraint '{ error: "Expected: never, Actual: unknown"; data: "Expected: never, Actual: undefined" | "Expected: never, Actual: ..."; }'.
|
Test Types with TypeScript 5.4
'response' is of type 'unknown'.
|
Test Types with TypeScript 5.4
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.4
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.4
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.4
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.4
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.4
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.2
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.2
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.2
Type '{ data: Transformed; } | { error: SerializedError | FetchBaseQueryError; }' does not satisfy the constraint '{ error: "Expected: never, Actual: unknown"; data: "Expected: never, Actual: undefined" | "Expected: never, Actual: ..."; }'.
|
Test Types with TypeScript 5.2
'response' is of type 'unknown'.
|
Test Types with TypeScript 5.2
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.2
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.2
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.2
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.2
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.2
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.0
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.0
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.0
Type '{ data: Transformed; } | { error: SerializedError | FetchBaseQueryError; }' does not satisfy the constraint '{ error: "Expected: never, Actual: unknown"; data: "Expected: never, Actual: undefined" | "Expected: never, Actual: ..."; }'.
|
Test Types with TypeScript 5.0
'response' is of type 'unknown'.
|
Test Types with TypeScript 5.0
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.0
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.0
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.0
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.0
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.0
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 4.8
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.8
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.8
Type '{ data: Transformed; } | { error: SerializedError | FetchBaseQueryError; }' does not satisfy the constraint '{ error: "Expected: never, Actual: unknown"; data: "Expected: never, Actual: undefined" | "Expected: never, Actual: ..."; }'.
|
Test Types with TypeScript 4.8
Object is of type 'unknown'.
|
Test Types with TypeScript 4.8
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.8
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.8
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.8
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.8
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 4.8
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.1
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.1
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.1
Type '{ data: Transformed; } | { error: SerializedError | FetchBaseQueryError; }' does not satisfy the constraint '{ error: "Expected: never, Actual: unknown"; data: "Expected: never, Actual: undefined" | "Expected: never, Actual: ..."; }'.
|
Test Types with TypeScript 5.1
'response' is of type 'unknown'.
|
Test Types with TypeScript 5.1
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.1
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.1
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 5.1
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 5.1
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 5.1
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 4.7
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.7
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.7
Type '{ data: Transformed; } | { error: SerializedError | FetchBaseQueryError; }' does not satisfy the constraint '{ error: "Expected: never, Actual: unknown"; data: "Expected: never, Actual: undefined" | "Expected: never, Actual: ..."; }'.
|
Test Types with TypeScript 4.7
Object is of type 'unknown'.
|
Test Types with TypeScript 4.7
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.7
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.7
Property 'request' does not exist on type '{}'.
|
Test Types with TypeScript 4.7
Property 'response' does not exist on type '{}'.
|
Test Types with TypeScript 4.7
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Test Types with TypeScript 4.7
Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
|
Unhandled error:
packages/toolkit/src/query/tests/createApi.test.ts#L592
TypeCheckError: 'response' is of type 'unknown'.
❯ src/query/tests/createApi.test.ts:592:24
|
Unhandled error:
packages/toolkit/src/query/tests/createApi.test.ts#L609
TypeCheckError: Property 'request' does not exist on type '{}'.
❯ src/query/tests/createApi.test.ts:609:62
|
Unhandled error:
packages/toolkit/src/query/tests/createApi.test.ts#L611
TypeCheckError: Property 'response' does not exist on type '{}'.
❯ src/query/tests/createApi.test.ts:611:53
|
Unhandled error:
packages/toolkit/src/query/tests/createApi.test.ts#L635
TypeCheckError: Property 'request' does not exist on type '{}'.
❯ src/query/tests/createApi.test.ts:635:62
|
Unhandled error:
packages/toolkit/src/query/tests/createApi.test.ts#L637
TypeCheckError: Property 'response' does not exist on type '{}'.
❯ src/query/tests/createApi.test.ts:637:53
|
Unhandled error:
packages/toolkit/src/query/tests/createApi.test.ts#L825
TypeCheckError: Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
Property 'request' is missing in type '{}' but required in type 'FetchBaseQueryMeta'.
❯ src/query/tests/createApi.test.ts:825:11
|
Unhandled error:
packages/toolkit/src/query/tests/createApi.test.ts#L832
TypeCheckError: Type '{} | undefined' is not assignable to type 'FetchBaseQueryMeta | undefined'.
❯ src/query/tests/createApi.test.ts:832:11
|
Unhandled error:
packages/toolkit/src/query/tests/fetchBaseQuery.test.tsx#L860
TypeCheckError: Argument of type 'IArguments' is not assignable to parameter of type 'any[]'.
Type 'IArguments' is missing the following properties from type 'any[]' pop, push, concat, join, and 33 more.
❯ src/query/tests/fetchBaseQuery.test.tsx:860:36
|
src/query/tests/baseQueryTypes.test-d.ts > type tests > BaseQuery meta types propagate to endpoint callbacks:
packages/toolkit/src/query/tests/baseQueryTypes.test-d.ts#L12
TypeCheckError: Property 'request' does not exist on type '{}'.
❯ src/query/tests/baseQueryTypes.test-d.ts:12:21
|
src/query/tests/baseQueryTypes.test-d.ts > type tests > BaseQuery meta types propagate to endpoint callbacks:
packages/toolkit/src/query/tests/baseQueryTypes.test-d.ts#L12
TypeCheckError: Property 'response' does not exist on type '{}'.
❯ src/query/tests/baseQueryTypes.test-d.ts:12:30
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
package
|
1.12 MB |
|