UNPKG

use-timer

Version:
33 lines (32 loc) 736 B
declare const ADVANCE_TIME: (timeToAdd: number) => { type: "advanceTime"; payload: { timeToAdd: number; }; }; declare const PAUSE: () => { type: "pause"; }; declare const RESET: (initialTime: number) => { type: "reset"; payload: { initialTime: number; }; }; declare const SET: (newTime: number) => { type: "set"; payload: { newTime: number; }; }; declare const START: (initialTime: number) => { type: "start"; payload: { initialTime: number; }; }; declare const STOP: () => { type: "stop"; }; export declare type TimerActionsType = ReturnType<typeof ADVANCE_TIME | typeof PAUSE | typeof RESET | typeof SET | typeof START | typeof STOP>; export {};