Test/node_modules/jotai/vanilla/utils/atomWithReducer.d.ts
2026-04-09 22:54:00 +07:00

3 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>;