JSPM

@types/async-polling

0.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4213
  • Score
    100M100P100Q121492F
  • License MIT

TypeScript definitions for async-polling

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/async-polling) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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: Tue, 17 Oct 2023 22:10:13 GMT
    • Dependencies: none

    Credits

    These definitions were written by Zlatko Andonovski.