
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@types/setimmediate
Advanced tools
TypeScript definitions for setimmediate
npm install --save @types/setimmediate
This package contains type definitions for setimmediate (https://github.com/yuzujs/setImmediate#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/setimmediate.
/**
* Schedules a macrotask to run after the current events have been processed.
*
* Unlike microtasks (scheduled using the Node 0.10+ `process.nextTick` API),
* where scheduling additional microtasks inside a microtask will cause them
* to be run inside the same microtask checkpoint, any macrotasks scheduled
* inside a macrotask will not be executed until the next iteration
* of the event loop.
*
* @param callback The macrotask to schedule.
* @param args The arguments to pass to the macrotask callback.
*
* @return The ID of the macrotask, which can be used to abort
* the macrotask with `clearImmediate`.
*/
declare function setImmediate<T extends unknown[]>(callback: (...args: T) => void, ...args: T): number;
/**
* Aborts the specified macrotask before it's run.
*
* @param handle The ID of the macrotask to remove from the macrotask queue.
*/
declare function clearImmediate(handle: number): void;
These definitions were written by ExE Boss.
FAQs
TypeScript definitions for setimmediate
The npm package @types/setimmediate receives a total of 77,920 weekly downloads. As such, @types/setimmediate popularity was classified as popular.
We found that @types/setimmediate 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.