react-tiny-toast
Version:
Aim of this package is to keep only bundles that are critical to your application for the implementation of toast notifications.
12 lines (11 loc) • 441 B
TypeScript
import { Content, callbackFuncTypes, ToastOptionsInterface } from "./types/react-tiny-toast";
export declare const toastManager: {
subscribe(callback: callbackFuncTypes): void;
add(content: Content, options: ToastOptionsInterface): number;
remove(id: number): boolean;
};
declare const toast: {
show: (content: Content, options: ToastOptionsInterface) => number;
remove: (id: number) => boolean;
};
export default toast;