jotai-valtio
Version:
13 lines (12 loc) • 343 B
TypeScript
type Wrapped<T> = {
value: T;
};
type ProxyFn<T> = (obj: Wrapped<T>) => Wrapped<T>;
type Options<T> = {
proxyFn?: ProxyFn<T>;
};
export declare function mutableAtom<Value>(initialValue: Value, options?: Options<Value>): import("jotai/vanilla").Atom<ProxyState<Value>>;
export type ProxyState<Value> = {
value: Value;
};
export {};