14 lines
630 B
TypeScript
14 lines
630 B
TypeScript
import { ActionDef } from "oak-domain/lib/types/Action";
|
|
import { GenericAction } from "oak-domain/lib/actions/action";
|
|
export type LoadState = 'unload' | 'loaded' | string;
|
|
export type LoadAction = 'loadUserInfo' | string;
|
|
export type TokenAction = 'refreshTokens' | string;
|
|
export type ParticularAction = LoadAction | TokenAction;
|
|
export declare const actions: string[];
|
|
export type State = LoadState | string;
|
|
export declare const LoadActionDef: ActionDef<LoadAction, LoadState>;
|
|
export type Action = GenericAction | ParticularAction | string;
|
|
export declare const actionDefDict: {
|
|
loadState: ActionDef<string, string>;
|
|
};
|