Files
Speedtest-Tracker/conf/site/node_modules/react-toastify/dist/hooks/toastContainerReducer.d.ts
Henry Whitaker 2219b0213c npm install
2021-03-07 09:24:01 +00:00

16 lines
356 B
TypeScript

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[];