Installation
npm install --save @types/async-polling
Summary
This package contains type definitions for async-polling (https://github.com/cGuille/async-polling).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-polling.
index.d.ts
declare namespace AsyncPolling {
export type EventName = "run" | "start" | "error" | "result" | "end" | "schedule" | "stop";
}
declare function AsyncPolling<Result>(
pollingFunc: (end: (err?: Error, result?: Result) => any) => any,
delay: number,
): {
run: () => any;
stop: () => any;
on: (eventName: AsyncPolling.EventName, listener: Function) => any;
};
export = AsyncPolling;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: none
Credits
These definitions were written by Zlatko Andonovski.