GoScrobble/web/node_modules/react-toastify/dist/hooks/useToast.d.ts

11 lines
365 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import { DOMAttributes } from 'react';
import { ToastProps } from '../types';
export declare function useToast(props: ToastProps): {
playToast: () => void;
pauseToast: () => void;
isRunning: boolean;
preventExitTransition: boolean;
toastRef: import("react").RefObject<HTMLDivElement>;
eventHandlers: DOMAttributes<HTMLElement>;
};