Files
Speedtest-Tracker/conf/site/node_modules/react-toastify/dist/hooks/toastContainerReducer.d.ts
Henry Whitaker acccfced1b Updated to v1.3.5
2020-05-12 11:57:22 +01:00

12 lines
269 B
TypeScript

import { Id } from '../types';
export declare type State = Array<Id>;
export declare type Action = {
type: 'ADD';
toastId: Id;
staleId?: Id;
} | {
type: 'REMOVE';
toastId?: Id;
};
export declare function reducer(state: State, action: Action): Id[];