Files
infocom-systems-design/node_modules/jotai/esm/vanilla/utils/atomWithReducer.d.mts
2025-10-03 22:27:28 +03:00

4 lines
381 B
TypeScript

import type { WritableAtom } from 'jotai/vanilla';
export declare function atomWithReducer<Value, Action>(initialValue: Value, reducer: (value: Value, action?: Action) => Value): WritableAtom<Value, [Action?], void>;
export declare function atomWithReducer<Value, Action>(initialValue: Value, reducer: (value: Value, action: Action) => Value): WritableAtom<Value, [Action], void>;