UNPKG

@xoid/svelte

Version:

Framework-agnostic state management library designed for simplicity and scalability

11 lines (8 loc) 378 B
import { Atom, Actions } from 'xoid'; import { Readable } from 'svelte/store'; /** * @see [xoid.dev/docs/framework-integrations/use-atom](https://xoid.dev/docs/framework-integrations/use-atom) */ declare function useAtom<T>(atom: Atom<T>): Readable<T>; declare function useAtom<T, U>(atom: Atom<T> & Actions<U>, withActions: true): [Readable<T>, U]; export { useAtom };