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

16 lines
371 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import { Id } from '../types';
export declare const enum ActionType {
ADD = 0,
REMOVE = 1
}
export declare type State = Array<Id>;
export declare type Action = {
type: ActionType.ADD;
toastId: Id;
staleId?: Id;
} | {
type: ActionType.REMOVE;
toastId?: Id;
};
export declare function reducer(state: State, action: Action): Id[];