@shopify/app-bridge
Version:
[](https://travis-ci.com/Shopify/app-bridge) [](https:
24 lines (23 loc) • 450 B
TypeScript
/**
* @module Flash
*/
export declare enum ActionType {
SHOW = "APP::FLASH::SHOW",
CLEAR = "APP::FLASH::CLEAR",
}
export declare enum Action {
SHOW = "SHOW",
CLEAR = "CLEAR",
}
export interface Options {
duration: number;
isDismissible?: boolean;
isError?: boolean;
message: string;
}
export interface ClearPayload {
readonly id?: string;
}
export interface Payload extends Options {
readonly id?: string;
}