UNPKG

@xoid/svelte

Version:

Framework-agnostic state management library designed for simplicity and scalability

12 lines (9 loc) 385 B
import { Atom } from 'xoid'; import { Readable } from 'svelte/store'; export { useAtom } from './useAtom'; /** * @see [xoid.dev/docs/framework-integrations/use-setup](https://xoid.dev/docs/framework-integrations/use-setup) */ declare function useSetup<T>(fn: () => T): T; declare function useSetup<T, P>(fn: ($props: Atom<P>) => T, props: Readable<P>): T; export { useSetup };