@types/async-polling
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/async-polling

Weekly Downloads

276

Version

0.0.7

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • types