typedux
Version:
Slightly adjusted Redux (awesome by default) for TS
10 lines (9 loc) • 547 B
TypeScript
import type { ObservableStore } from "../store";
import { PendingAction, ActionMessage } from "../actions/ActionTypes";
import { BaseActionFactory } from "../actions/BaseActionFactory";
import { InternalState, InternalStateKey } from "./InternalState";
export declare class InternalActionFactory extends BaseActionFactory<InternalState, ActionMessage<InternalState>, InternalStateKey> {
constructor(store?: ObservableStore);
leaf(): InternalStateKey;
setPendingAction(action: PendingAction): (state: InternalState) => InternalState;
}