UNPKG

jotai

Version:

👻 Primitive and flexible state management for React

4 lines (3 loc) • 266 B
import type { Atom } from 'jotai/vanilla'; export declare function freezeAtom<AtomType extends Atom<any>>(anAtom: AtomType): AtomType; export declare function freezeAtomCreator<CreateAtom extends (...params: any[]) => Atom<any>>(createAtom: CreateAtom): CreateAtom;