MCPcopy
hub / github.com/TanStack/query / isSvelteStore

Function isSvelteStore

packages/svelte-query/src/utils.ts:4–8  ·  view source on GitHub ↗
(
  obj: StoreOrVal<T>,
)

Source from the content-addressed store, hash-verified

2import type { StoreOrVal } from './types.js'
3
4export function isSvelteStore<T extends object>(
5 obj: StoreOrVal<T>,
6): obj is Readable<T> {
7 return 'subscribe' in obj && typeof obj.subscribe === 'function'
8}

Callers 3

createMutationFunction · 0.85
createBaseQueryFunction · 0.85
createQueriesFunction · 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…