typedux
Version:
Slightly adjusted Redux (awesome by default) for TS
44 lines (43 loc) • 1.07 kB
TypeScript
import type { PendingAction } from "../actions";
import type { State } from "../reducers";
import { INTERNAL_KEY } from "../constants";
export declare type InternalStateKey = typeof INTERNAL_KEY;
export declare class InternalState implements State<InternalStateKey> {
static Key: InternalStateKey;
/**
* Deserialize
*
* @param o
* @returns {InternalState&U&{pendingActions: (Map<any, any>|Map<string, any>|any)}}
*/
static fromJS(o?: any): InternalState & {
pendingActions: any;
};
/**
* Create a new internal state
*/
constructor(o?: any);
type: InternalStateKey;
/**
* All pending actions
*/
pendingActions: {
[id: string]: PendingAction;
};
/**
* Total actions executed
*/
totalActionCount: number;
/**
* Pending action count
*/
pendingActionCount: number;
/**
* Has pending actions currently ?
*/
hasPendingActions: boolean;
/**
* Returns empty object - can not be serialized
*/
toJS(): this;
}