Skip to contentOpen History to see the last commit
utils.ts
8 lines251 Bytes
1import type { Writable } from 'svelte/store' 2import type { WritableOrVal } from './types' 4export function isWritable<T extends object>( 7 return 'subscribe' in obj && 'set' in obj && 'update' in obj