MCPcopy Create free account
hub / github.com/TanStack/query / predicate

Function predicate

packages/query-core/src/__tests__/queryClient.test-d.tsx:942–953  ·  view source on GitHub ↗
(mutation)

Source from the content-addressed store, hash-verified

940 expectTypeOf(
941 queryClient.isMutating<MutationFilters<TypedData, TypedError>>({
942 predicate(mutation) {
943 expectTypeOf(mutation).toEqualTypeOf<
944 Mutation<TypedData, TypedError>
945 >()
946 expectTypeOf(mutation.state.data).toEqualTypeOf<
947 TypedData | undefined
948 >()
949 expectTypeOf(
950 mutation.state.error,
951 ).toEqualTypeOf<TypedError | null>()
952 return true
953 },
954 }),
955 ).toEqualTypeOf<number>()
956 })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected