mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
329 B
TypeScript
12 lines
329 B
TypeScript
import loopbench = require('loopbench');
|
|
|
|
const inst = loopbench();
|
|
inst; // $ExpectType LoopBench
|
|
loopbench({ sampleInterval: 1 }); // $ExpectType LoopBench
|
|
loopbench({ limit: 1 }); // $ExpectType LoopBench
|
|
|
|
inst.delay; // $ExpectType number
|
|
inst.limit; // $ExpectType number
|
|
inst.overLimit; // $ExpectType boolean
|
|
inst.stop();
|