Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
255 Bytes
import type { Readable } from 'svelte/store'
import type { StoreOrVal } from './types.js'
export function isSvelteStore<T extends object>(
obj: StoreOrVal<T>,
): obj is Readable<T> {
return 'subscribe' in obj && typeof obj.subscribe === 'function'
}