Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
41 lines
996 B
Plaintext
41 lines
996 B
Plaintext
export type LoadingOverlayTypes = 'fullscreen' | 'withoutNav';
|
|
type ToggleLoadingOverlayOptions = {
|
|
isLoading?: boolean;
|
|
key: string;
|
|
loadingText?: string;
|
|
type?: LoadingOverlayTypes;
|
|
};
|
|
export type ToggleLoadingOverlay = (options: ToggleLoadingOverlayOptions) => void;
|
|
type Add = {
|
|
payload: {
|
|
key: string;
|
|
loadingText?: string;
|
|
type: LoadingOverlayTypes;
|
|
};
|
|
type: 'add';
|
|
};
|
|
type Remove = {
|
|
payload: {
|
|
key: string;
|
|
loadingText?: never;
|
|
type: LoadingOverlayTypes;
|
|
};
|
|
type: 'remove';
|
|
};
|
|
export type Action = Add | Remove;
|
|
export type State = {
|
|
isLoading: boolean;
|
|
loaders: {
|
|
key: string;
|
|
loadingText: string;
|
|
type: LoadingOverlayTypes;
|
|
}[];
|
|
loadingText: string;
|
|
overlayType: LoadingOverlayTypes | null;
|
|
};
|
|
export type LoadingOverlayContext = {
|
|
isOnScreen: boolean;
|
|
toggleLoadingOverlay: ToggleLoadingOverlay;
|
|
};
|
|
export {};
|
|
//# sourceMappingURL=types.d.ts.map |