
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@types/promise-inflight
Advanced tools
TypeScript definitions for promise-inflight
npm install --save @types/promise-inflight
This package contains type definitions for promise-inflight (https://github.com/iarna/promise-inflight#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-inflight.
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>;
};
}
These definitions were written by Emily Marigold Klassen.
FAQs
TypeScript definitions for promise-inflight
The npm package @types/promise-inflight receives a total of 4,721 weekly downloads. As such, @types/promise-inflight popularity was classified as popular.
We found that @types/promise-inflight demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.