Skip to contentOpen History to see the last commit
utils.ts
8 lines252 Bytes
1import type { Readable } from 'svelte/store' 2import type { StoreOrVal } from './types' 4export function isSvelteStore<T extends object>( 7 return 'subscribe' in obj && typeof obj.subscribe === 'function'