import type { Readable } from 'svelte/store' import type { StoreOrVal } from './types.js' export function isSvelteStore( obj: StoreOrVal, ): obj is Readable { return 'subscribe' in obj && typeof obj.subscribe === 'function' }