mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
15 lines
553 B
TypeScript
15 lines
553 B
TypeScript
// Type definitions for event-loop-lag 1.0.3
|
|
// Project: https://github.com/pebble/event-loop-lag
|
|
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
declare module "event-loop-lag" {
|
|
|
|
/**
|
|
* Accepts a number of milliseconds representing how often to refresh the event loop lag measurement and returns a function you can call to receive the latest lag measurement in milliseconds.
|
|
*/
|
|
function lag(interval: number): () => number;
|
|
|
|
export = lag;
|
|
}
|