⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
nodejs
/
@types
/
promise-inflight
/
View File Name :
index.d.ts
// Type definitions for promise-inflight 1.0 // Project: https://github.com/iarna/promise-inflight#readme // Definitions by: Emily Marigold Klassen <https://github.com/forivall> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = inflight; type Resolvable<T> = PromiseLike<T> | 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<T>( unique: Resolvable<string> | Resolvable<ReadonlyArray<Resolvable<string>>>, doFly: () => Resolvable<T> ): Promise<T>; declare namespace inflight { const active: { [key: string]: Promise<any> }; }