@augmentcode/ag-redux-toolkit
Version:
Redux + Saga state management for Svelte apps — designed for AI agents. Includes runtime TypeScript source, AI skills, and reference documentation for robust, observable, high-performance state management.
9 lines • 555 B
TypeScript
import { UnknownAction } from 'redux';
import { StoreAction, StoreActionCreator } from '../../types';
export type StoreReducer<S, A> = (state: S, action: A) => S;
export declare const createReducer: <S, A extends StoreAction<any> = StoreAction<any>>(initialState: S) => {
(state: S | undefined, action: StoreAction<any> | UnknownAction): S;
with: <ARGS extends any[], PL = ARGS>(action: StoreActionCreator<ARGS, PL>, reducer: StoreReducer<S, StoreAction<PL>>) => /*elided*/ any;
initialState: S;
};
//# sourceMappingURL=create-reducer.d.ts.map