This commit is contained in:
2
node_modules/react-toastify/dist/hooks/index.d.ts
generated
vendored
Normal file
2
node_modules/react-toastify/dist/hooks/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './useToastContainer';
|
||||
export * from './useToast';
|
||||
10
node_modules/react-toastify/dist/hooks/useToast.d.ts
generated
vendored
Normal file
10
node_modules/react-toastify/dist/hooks/useToast.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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>;
|
||||
};
|
||||
23
node_modules/react-toastify/dist/hooks/useToastContainer.d.ts
generated
vendored
Normal file
23
node_modules/react-toastify/dist/hooks/useToastContainer.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/// <reference types="react" />
|
||||
import { Id, ToastContainerProps, ToastProps, ToastContent, Toast, ToastPosition } from '../types';
|
||||
interface QueuedToast {
|
||||
toastContent: ToastContent;
|
||||
toastProps: ToastProps;
|
||||
staleId?: Id;
|
||||
}
|
||||
export interface ContainerInstance {
|
||||
toastKey: number;
|
||||
displayedToast: number;
|
||||
props: ToastContainerProps;
|
||||
containerId?: Id | null;
|
||||
isToastActive: (toastId: Id) => boolean;
|
||||
getToast: (id: Id) => Toast | null | undefined;
|
||||
queue: QueuedToast[];
|
||||
count: number;
|
||||
}
|
||||
export declare function useToastContainer(props: ToastContainerProps): {
|
||||
getToastToRender: <T>(cb: (position: ToastPosition, toastList: Toast[]) => T) => T[];
|
||||
containerRef: import("react").MutableRefObject<null>;
|
||||
isToastActive: (id: Id) => boolean;
|
||||
};
|
||||
export {};
|
||||
Reference in New Issue
Block a user