MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / isQueryKey

Function isQueryKey

src/queryCore/core/utils.ts:423–425  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

421}
422
423export function isQueryKey(value: any): value is QueryKey {
424 return typeof value === 'string' || Array.isArray(value)
425}
426
427export function isError(value: any): value is Error {
428 return value instanceof Error

Callers 6

parseQueryArgsFunction · 0.85
parseMutationArgsFunction · 0.85
parseFilterArgsFunction · 0.85
parseMutationFilterArgsFunction · 0.85
matchQueryFunction · 0.85
matchMutationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…