@types/queue-tick 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
queue-tick/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
queue-tick/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Installation
2
+ > `npm install --save @types/queue-tick`
3
+
4
+ # Summary
5
+ This package contains type definitions for queue-tick (https://github.com/mafintosh/queue-tick).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/queue-tick.
9
+ ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/queue-tick/index.d.ts)
10
+ ````ts
11
+ /**
12
+ * Schedules a callback to be invoked in the next tick.
13
+ *
14
+ * Uses `process.nextTick` when available (Node.js), falls back to
15
+ * `queueMicrotask` or `Promise.resolve().then()` in browsers.
16
+ *
17
+ * @param callback - The function to call in the next tick
18
+ *
19
+ * @example
20
+ * ```javascript
21
+ * const nextTick = require('queue-tick');
22
+ *
23
+ * nextTick(() => {
24
+ * console.log('Called in next tick');
25
+ * });
26
+ * ```
27
+ */
28
+ declare function nextTick(callback: () => void): void;
29
+
30
+ export = nextTick;
31
+
32
+ ````
33
+
34
+ ### Additional Details
35
+ * Last updated: Thu, 05 Feb 2026 08:45:22 GMT
36
+ * Dependencies: none
37
+
38
+ # Credits
39
+ These definitions were written by [gaspard](https://github.com/gasp).
queue-tick/index.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Schedules a callback to be invoked in the next tick.
3
+ *
4
+ * Uses `process.nextTick` when available (Node.js), falls back to
5
+ * `queueMicrotask` or `Promise.resolve().then()` in browsers.
6
+ *
7
+ * @param callback - The function to call in the next tick
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const nextTick = require('queue-tick');
12
+ *
13
+ * nextTick(() => {
14
+ * console.log('Called in next tick');
15
+ * });
16
+ * ```
17
+ */
18
+ declare function nextTick(callback: () => void): void;
19
+
20
+ export = nextTick;
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@types/queue-tick",
3
+ "version": "1.0.0",
4
+ "description": "TypeScript definitions for queue-tick",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/queue-tick",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "gaspard",
10
+ "githubUsername": "gasp",
11
+ "url": "https://github.com/gasp"
12
+ }
13
+ ],
14
+ "main": "",
15
+ "types": "index.d.ts",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
19
+ "directory": "types/queue-tick"
20
+ },
21
+ "scripts": {},
22
+ "dependencies": {},
23
+ "peerDependencies": {},
24
+ "typesPublisherContentHash": "197203f3cb917ab9b9e6b784bfda91687fb2aedeebf62148e6e82f62d7cbd898",
25
+ "typeScriptVersion": "5.2"
26
+ }