npm.io
2.0.4 • Published 5 years ago

krchecktimer

Licence
ISC
Version
2.0.4
Deps
0
Size
2 kB
Vulns
0
Weekly
0
Stars
4

About this

just check setTimeout/setInterval function supports

References


/**
 * return true if timer is installed
 */
function isTimerInstalled():boolean;

/**
 * just throw Error(`${moduleName} needs timer`)
 * if timer is not installed
 */
function timerIsNeeded(moduleName:string):void;