react-toasts-forked-esm
Version:
Simple react alerter.
19 lines (18 loc) • 785 B
TypeScript
import * as React from "react";
import { WatchableStore } from "watchable-stores";
export interface IToastsStore {
status: string;
message: string | React.ReactNode;
timer: number;
classNames: string[] | string;
}
declare class Store extends WatchableStore<IToastsStore> {
constructor();
success(message: string | React.ReactNode, timer?: number, classNames?: string | string[]): void;
info(message: string | React.ReactNode, timer?: number, classNames?: string | string[]): void;
warning(message: string | React.ReactNode, timer?: number, classNames?: string | string[]): void;
error(message: string | React.ReactNode, timer?: number, classNames?: string | string[]): void;
private _toast;
}
export declare const ToastsStore: Store;
export {};