promise-inflight/000755 001751 000177 0000000000 14522377323016041 5ustar00runner000000 000000 1452237732314522377323promise-inflight/LICENSE000644 001751 000177 0000002165 14522377323017052 0ustar00runner000000 000000 1452237732314522377323 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE promise-inflight/README.md000644 001751 000177 0000002575 14522377323017332 0ustar00runner000000 000000 1452243545514522377323# Installation > `npm install --save @types/promise-inflight` # Summary This package contains type definitions for promise-inflight (https://github.com/iarna/promise-inflight#readme). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-inflight. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-inflight/index.d.ts) ````ts export = inflight; type Resolvable = PromiseLike | T; /** * @param 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. * @param 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. */ declare function inflight( unique: Resolvable | Resolvable>>, doFly: () => Resolvable, ): Promise; declare namespace inflight { const active: { [key: string]: Promise; }; } ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 09:09:39 GMT * Dependencies: none # Credits These definitions were written by [Emily Marigold Klassen](https://github.com/forivall). promise-inflight/index.d.ts000644 001751 000177 0000001366 14522377323017750 0ustar00runner000000 000000 1452237732314522377323export = inflight; type Resolvable = PromiseLike | T; /** * @param 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. * @param 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. */ declare function inflight( unique: Resolvable | Resolvable>>, doFly: () => Resolvable, ): Promise; declare namespace inflight { const active: { [key: string]: Promise; }; } promise-inflight/package.json000644 001751 000177 0000001500 14522377323020324 0ustar00runner000000 000000 1452243545514522377323{ "name": "@types/promise-inflight", "version": "1.0.3", "description": "TypeScript definitions for promise-inflight", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-inflight", "license": "MIT", "contributors": [ { "name": "Emily Marigold Klassen", "githubUsername": "forivall", "url": "https://github.com/forivall" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/promise-inflight" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "e40c4eceb3d79a920887ba6fe24676e386e3fe480b0b70131f5c798a70d0c194", "typeScriptVersion": "4.5" }