@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
24 lines (23 loc) • 794 B
TypeScript
import { default as React } from 'react';
export declare const TryAgainActionType: {
readonly NONE: "none";
readonly RESET: "reset";
readonly POSTMESSAGE: "postMessage";
readonly REDIRECT: "redirect";
};
export declare const TryAgainActionComponent: () => React.JSX.Element;
export type TryAgainNoneAction = {
type: typeof TryAgainActionType.NONE;
};
export type TryAgainResetAction = {
type: typeof TryAgainActionType.RESET;
};
export type TryAgainPostMessageAction = {
type: typeof TryAgainActionType.POSTMESSAGE;
};
export type TryAgainRedirectAction = {
type: typeof TryAgainActionType.REDIRECT;
target?: string;
url: URL;
};
export type TryAgainAction = TryAgainNoneAction | TryAgainResetAction | TryAgainPostMessageAction | TryAgainRedirectAction;