@types/promise-inflight

  • Version 1.0.3
  • Published
  • 4.14 kB
  • No dependencies
  • MIT license

Install

npm i @types/promise-inflight
yarn add @types/promise-inflight
pnpm add @types/promise-inflight

Overview

TypeScript definitions for promise-inflight

Index

Variables

Functions

Variables

variable active

const active: { [key: string]: Promise<any> };

    Functions

    function inflight

    inflight: typeof inflight;
    • Parameter unique

      A globally-unique key that is used to identify the call to this function. It determines how to cache the inlfight request. eg. a url or filename or whatever.

      Parameter doFly

      The function that actually carries out the request, eg. fetches the url or whatever.

      Returns

      One promise as long as the doFly() promise is pending. Note that if bluebird is installed, this promise will be a Bluebird promise.

    Package Files (1)

    Dependencies (0)

    No dependencies.

    Dev Dependencies (0)

    No dev dependencies.

    Peer Dependencies (0)

    No peer dependencies.

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/promise-inflight.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/promise-inflight)
    • HTML
      <a href="https://www.jsdocs.io/package/@types/promise-inflight"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>