@vashnak/react-toasts
Version:
Simple react alerter.
18 lines (17 loc) • 733 B
TypeScript
import { WatchableStore } from "watchable-stores";
export interface IToastsStore {
status: string;
message: string | HTMLElement;
timer: number;
classNames: string[] | string;
}
declare class Store extends WatchableStore<IToastsStore> {
constructor();
success(message: string | HTMLElement, timer?: number, classNames?: string | string[]): void;
info(message: string | HTMLElement, timer?: number, classNames?: string | string[]): void;
warning(message: string | HTMLElement, timer?: number, classNames?: string | string[]): void;
error(message: string | HTMLElement, timer?: number, classNames?: string | string[]): void;
private _toast;
}
export declare const ToastsStore: Store;
export {};