@huolala-tech/page-spy-browser
Version:
A developer tool for debugging remote web page.
14 lines (13 loc) • 377 B
TypeScript
type ToastType = 'success' | 'error';
/**
* Show notification use `Toast.message('Copied')`
* Clear all notifications use `Toast.destroy()`
*/
export declare class Toast {
private static timer;
private static get root();
static message(text: string | Element): void;
static show(type: ToastType, text: string): void;
static destroy(): void;
}
export {};