mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-27 15:41:39 +01:00
12 lines
269 B
TypeScript
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[];
|