UNPKG

inactivity-timer

Version:

Run a function after a period of inactivity.

11 lines (8 loc) 285 B
declare namespace createInactivityTimer { interface InactivityTimer { clear: () => void signal: () => void } } declare function createInactivityTimer (threshold: number | string, onInactive: Function): createInactivityTimer.InactivityTimer export = createInactivityTimer