Fix useInfiniteQuery hook types and trigger behavior #42
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
100 errors
Test Types: TS 5.5
Property 'endpointName' does not exist on type 'never'.
|
Test Types: TS 5.5
Property 'originalArgs' does not exist on type 'never'.
|
Test Types: TS 5.5
Property 'data' does not exist on type 'never'.
|
Test Types: TS 5.5
No overload matches this call.
|
Test Types: TS 5.5
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.5
This expression is not callable.
|
Test Types: TS 5.5
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 5.5
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 46 more ...; description: "Expected: never, Actual: undefined" | "Expected: never, Actual: string"; }'.
|
Test Types: TS 5.5
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.5
Type 'InfiniteData<Pokemon[], number> | undefined' does not satisfy the constraint '"Expected: undefined, Actual: never" | "Expected: ..., Actual: never"'.
|
Test Types: TS 5.1
Property 'endpointName' does not exist on type 'never'.
|
Test Types: TS 5.1
Property 'originalArgs' does not exist on type 'never'.
|
Test Types: TS 5.1
Property 'data' does not exist on type 'never'.
|
Test Types: TS 5.1
No overload matches this call.
|
Test Types: TS 5.1
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.1
This expression is not callable.
|
Test Types: TS 5.1
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 5.1
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 44 more ...; description: "Expected: never, Actual: undefined" | "Expected: never, Actual: string"; }'.
|
Test Types: TS 5.1
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.1
Type 'InfiniteData<Pokemon[], number> | undefined' does not satisfy the constraint '"Expected: undefined, Actual: never" | "Expected: ..., Actual: never"'.
|
Test Types: TS 5.4
Property 'endpointName' does not exist on type 'never'.
|
Test Types: TS 5.4
Property 'originalArgs' does not exist on type 'never'.
|
Test Types: TS 5.4
Property 'data' does not exist on type 'never'.
|
Test Types: TS 5.4
No overload matches this call.
|
Test Types: TS 5.4
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.4
This expression is not callable.
|
Test Types: TS 5.4
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 5.4
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 44 more ...; description: "Expected: never, Actual: undefined" | "Expected: never, Actual: string"; }'.
|
Test Types: TS 5.4
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.4
Type 'InfiniteData<Pokemon[], number> | undefined' does not satisfy the constraint '"Expected: undefined, Actual: never" | "Expected: ..., Actual: never"'.
|
Test Types: TS 4.9
Property 'endpointName' does not exist on type 'never'.
|
Test Types: TS 4.9
Property 'originalArgs' does not exist on type 'never'.
|
Test Types: TS 4.9
Property 'data' does not exist on type 'never'.
|
Test Types: TS 4.9
No overload matches this call.
|
Test Types: TS 4.9
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 4.9
This expression is not callable.
|
Test Types: TS 4.9
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 4.9
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 44 more ...; description: "Expected: never, Actual: undefined" | "Expected: never, Actual: string"; }'.
|
Test Types: TS 4.9
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 4.9
Type 'InfiniteData<Pokemon[], number> | undefined' does not satisfy the constraint '"Expected: undefined, Actual: never" | "Expected: ..., Actual: never"'.
|
Test Types: TS 5.3
Property 'endpointName' does not exist on type 'never'.
|
Test Types: TS 5.3
Property 'originalArgs' does not exist on type 'never'.
|
Test Types: TS 5.3
Property 'data' does not exist on type 'never'.
|
Test Types: TS 5.3
No overload matches this call.
|
Test Types: TS 5.3
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.3
This expression is not callable.
|
Test Types: TS 5.3
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 5.3
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 44 more ...; description: "Expected: never, Actual: undefined" | "Expected: never, Actual: string"; }'.
|
Test Types: TS 5.3
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.3
Type 'InfiniteData<Pokemon[], number> | undefined' does not satisfy the constraint '"Expected: undefined, Actual: never" | "Expected: ..., Actual: never"'.
|
Test Types: TS 5.0
Property 'endpointName' does not exist on type 'never'.
|
Test Types: TS 5.0
Property 'originalArgs' does not exist on type 'never'.
|
Test Types: TS 5.0
Property 'data' does not exist on type 'never'.
|
Test Types: TS 5.0
No overload matches this call.
|
Test Types: TS 5.0
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.0
This expression is not callable.
|
Test Types: TS 5.0
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 5.0
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 44 more ...; description: "Expected: never, Actual: undefined" | "Expected: never, Actual: string"; }'.
|
Test Types: TS 5.0
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.0
Type 'InfiniteData<Pokemon[], number> | undefined' does not satisfy the constraint '"Expected: undefined, Actual: never" | "Expected: ..., Actual: never"'.
|
Test Types: TS 4.7
'param' is referenced directly or indirectly in its own type annotation.
|
Test Types: TS 4.7
Property 'param' does not exist on type 'never'.
|
Test Types: TS 4.7
Property 'direction' does not exist on type 'never'.
|
Test Types: TS 4.7
Conversion of type '{ data: InfiniteData<unknown, unknown> | undefined; currentData: InfiniteData<unknown, unknown> | undefined; isFetching: boolean; isLoading: boolean; isSuccess: boolean; isFetchingNextPage: boolean; ... 13 more ...; isError: false; } | { ...; } | { ...; } | { ...; }' to type '{ [x: string]: never; [x: number]: never; [x: symbol]: never; isUninitialized: true; } & { status: QueryStatus; }' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
Test Types: TS 4.7
Type 'QueryStateSelector<any, any> | undefined' is not assignable to type 'InfiniteQueryStateSelector<R, any> | undefined'.
|
Test Types: TS 4.7
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 4.7
This expression is not callable.
|
Test Types: TS 4.7
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 4.7
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 44 more ...; valueOf: "Expected: function, Actual: never"; }'.
|
Test Types: TS 4.7
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.2
Property 'endpointName' does not exist on type 'never'.
|
Test Types: TS 5.2
Property 'originalArgs' does not exist on type 'never'.
|
Test Types: TS 5.2
Property 'data' does not exist on type 'never'.
|
Test Types: TS 5.2
No overload matches this call.
|
Test Types: TS 5.2
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.2
This expression is not callable.
|
Test Types: TS 5.2
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 5.2
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 44 more ...; description: "Expected: never, Actual: undefined" | "Expected: never, Actual: string"; }'.
|
Test Types: TS 5.2
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 5.2
Type 'InfiniteData<Pokemon[], number> | undefined' does not satisfy the constraint '"Expected: undefined, Actual: never" | "Expected: ..., Actual: never"'.
|
Unhandled error:
packages/toolkit/src/query/tests/buildHooks.test.tsx#L820
TypeCheckError: Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
❯ src/query/tests/buildHooks.test.tsx:820:68
|
Unhandled error:
packages/toolkit/src/query/tests/buildHooks.test.tsx#L832
TypeCheckError: This expression is not callable. Type 'never' has no call signatures.
❯ src/query/tests/buildHooks.test.tsx:832:27
|
Unhandled error:
packages/toolkit/src/query/tests/buildHooks.test.tsx#L841
TypeCheckError: Property 'pages' does not exist on type 'never'.
❯ src/query/tests/buildHooks.test.tsx:841:22
|
src/query/tests/infiniteQueries.test-d.ts > Infinite queries > Basic infinite query behavior:
packages/toolkit/src/query/tests/infiniteQueries.test-d.ts#L78
TypeCheckError: Type 'string | unique symbol' does not satisfy the constraint '{ [x number] never; [iterator] never; [toStringTag] "Expected never, Actual string"; length never; toString () => string; concat never; slice never; indexOf never; lastIndexOf never; ... 46 more ...; description "Expected never, Actual string" | "Expected never, Actual undefined"; }'.
Type 'string' is not assignable to type '{ [x number] never; [iterator] never; [toStringTag] "Expected never, Actual string"; length never; toString () => string; concat never; slice never; indexOf never; lastIndexOf never; ... 46 more ...; description "Expected never, Actual string" | "Expected never, Actual undefined"; }'.
❯ src/query/tests/infiniteQueries.test-d.ts:78:22
|
src/query/tests/infiniteQueries.test-d.ts > Infinite queries > Basic infinite query behavior:
packages/toolkit/src/query/tests/infiniteQueries.test-d.ts#L88
TypeCheckError: Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
❯ src/query/tests/infiniteQueries.test-d.ts:88:38
|
src/query/tests/infiniteQueries.test-d.ts > Infinite queries > Basic infinite query behavior:
packages/toolkit/src/query/tests/infiniteQueries.test-d.ts#L95
TypeCheckError: Property 'pages' does not exist on type 'never'.
❯ src/query/tests/infiniteQueries.test-d.ts:95:27
|
src/query/tests/infiniteQueries.test-d.ts > Infinite queries > Basic infinite query behavior:
packages/toolkit/src/query/tests/infiniteQueries.test-d.ts#L96
TypeCheckError: Property 'pageParams' does not exist on type 'never'.
❯ src/query/tests/infiniteQueries.test-d.ts:96:27
|
src/query/tests/infiniteQueries.test-d.ts > Infinite queries > Basic infinite query behavior:
packages/toolkit/src/query/tests/infiniteQueries.test-d.ts#L100
TypeCheckError: Property 'pages' does not exist on type 'never'.
❯ src/query/tests/infiniteQueries.test-d.ts:100:34
|
src/query/tests/infiniteQueries.test-d.ts > Infinite queries > Basic infinite query behavior:
packages/toolkit/src/query/tests/infiniteQueries.test-d.ts#L101
TypeCheckError: Property 'pageParams' does not exist on type 'never'.
❯ src/query/tests/infiniteQueries.test-d.ts:101:34
|
src/query/tests/infiniteQueries.test-d.ts > Infinite queries > Basic infinite query behavior:
packages/toolkit/src/query/tests/infiniteQueries.test-d.ts#L105
TypeCheckError: This expression is not callable. Type 'never' has no call signatures.
❯ src/query/tests/infiniteQueries.test-d.ts:105:27
|
Test Types: TS 4.8
'param' is referenced directly or indirectly in its own type annotation.
|
Test Types: TS 4.8
Property 'param' does not exist on type 'never'.
|
Test Types: TS 4.8
Property 'direction' does not exist on type 'never'.
|
Test Types: TS 4.8
Conversion of type '{ data: InfiniteData<unknown, unknown> | undefined; currentData: InfiniteData<unknown, unknown> | undefined; isFetching: boolean; isLoading: boolean; isSuccess: boolean; isFetchingNextPage: boolean; ... 13 more ...; isError: false; } | { ...; } | { ...; } | { ...; }' to type '{ [x: string]: never; [x: number]: never; [x: symbol]: never; isUninitialized: true; } & { status: QueryStatus; }' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
Test Types: TS 4.8
Type 'QueryStateSelector<any, any> | undefined' is not assignable to type 'InfiniteQueryStateSelector<R, any> | undefined'.
|
Test Types: TS 4.8
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Test Types: TS 4.8
This expression is not callable.
|
Test Types: TS 4.8
Property 'pages' does not exist on type 'never'.
|
Test Types: TS 4.8
Type 'string | unique symbol' does not satisfy the constraint '{ [x: number]: never; [iterator]: never; [toPrimitive]: "Expected: never, Actual: function"; length: never; toString: () => string; concat: never; slice: never; indexOf: never; lastIndexOf: never; ... 44 more ...; description: "Expected: never, Actual: undefined" | "Expected: never, Actual: string"; }'.
|
Test Types: TS 4.8
Argument of type '"a"' is not assignable to parameter of type 'unique symbol'.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
package
|
1.21 MB |
|