readiness-manager
Version:
👨💼 Define when your app is ready
17 lines • 496 B
TypeScript
export type ActionStatus = 'not_started' | 'pending' | 'resolved' | 'rejected';
export type ReadyCallback = () => void;
export type ReadyAction = () => unknown | Promise<unknown>;
export type ActionsStatus = {
[key in ActionStatus]?: string[];
};
export interface Beacon {
name: string;
action: ReadyAction;
status: ActionStatus;
callbacks: ReadyCallback[];
debug?: boolean;
}
export interface BeaconsMap {
[name: string]: Beacon;
}
//# sourceMappingURL=types.d.ts.map