mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
603 B
TypeScript
26 lines
603 B
TypeScript
import toobusy = require('toobusy-js');
|
|
|
|
let numberValue = 1;
|
|
let booleanValue = true;
|
|
|
|
booleanValue = toobusy();
|
|
booleanValue = toobusy.started();
|
|
|
|
numberValue = toobusy.interval(numberValue);
|
|
numberValue = toobusy.interval();
|
|
numberValue = toobusy.lag();
|
|
numberValue = toobusy.maxLag(numberValue);
|
|
numberValue = toobusy.maxLag();
|
|
numberValue = toobusy.smoothingFactor(numberValue);
|
|
numberValue = toobusy.smoothingFactor();
|
|
toobusy.shutdown();
|
|
|
|
toobusy.onLag(duration => {
|
|
// $ExpectType number
|
|
duration;
|
|
});
|
|
toobusy.onLag(duration => {
|
|
// $ExpectType number
|
|
duration;
|
|
}, numberValue);
|