UNPKG

react-konami-code

Version:

Trigger an easter egg by pressing a sequence of keys. Available as a component or a custom hook. Supports timeout and input debounce/reset.

11 lines (10 loc) 231 B
declare class Timer { t: number; timerIntervalID: number | null; fn: TimerHandler; constructor(fn: () => void, t: number); stop(): this; start(): this; reset(newT: number): this; } export default Timer;