@types/queue-tick
v1.0.0
Published
TypeScript definitions for queue-tick
Readme
Installation
npm install --save @types/queue-tick
Summary
This package contains type definitions for queue-tick (https://github.com/mafintosh/queue-tick).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/queue-tick.
index.d.ts
/**
* Schedules a callback to be invoked in the next tick.
*
* Uses `process.nextTick` when available (Node.js), falls back to
* `queueMicrotask` or `Promise.resolve().then()` in browsers.
*
* @param callback - The function to call in the next tick
*
* @example
* ```javascript
* const nextTick = require('queue-tick');
*
* nextTick(() => {
* console.log('Called in next tick');
* });
* ```
*/
declare function nextTick(callback: () => void): void;
export = nextTick;
Additional Details
- Last updated: Thu, 05 Feb 2026 08:45:22 GMT
- Dependencies: none
Credits
These definitions were written by gaspard.
