@types/node 10.11.6 → 10.11.7
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.
- node/README.md +1 -1
- node/index.d.ts +35 -18
- node/package.json +2 -2
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 10 Oct 2018 17:39:25 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
|
|
14
14
|
|
node/index.d.ts
CHANGED
|
@@ -108,6 +108,10 @@ interface Console {
|
|
|
108
108
|
* Stops a timer that was previously started by calling {@link console.time()} and prints the result to `stdout`.
|
|
109
109
|
*/
|
|
110
110
|
timeEnd(label?: string): void;
|
|
111
|
+
/**
|
|
112
|
+
* For a timer that was previously started by calling {@link console.time()}, prints the elapsed time and other `data` arguments to `stdout`.
|
|
113
|
+
*/
|
|
114
|
+
timeLog(label: string, ...data: any[]): void;
|
|
111
115
|
/**
|
|
112
116
|
* Prints to `stderr` the string 'Trace :', followed by the {@link util.format()} formatted message and stack trace to the current position in the code.
|
|
113
117
|
*/
|
|
@@ -203,20 +207,20 @@ declare var console: Console;
|
|
|
203
207
|
declare var __filename: string;
|
|
204
208
|
declare var __dirname: string;
|
|
205
209
|
|
|
206
|
-
declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.
|
|
210
|
+
declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
207
211
|
declare namespace setTimeout {
|
|
208
212
|
function __promisify__(ms: number): Promise<void>;
|
|
209
213
|
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
|
210
214
|
}
|
|
211
|
-
declare function clearTimeout(timeoutId: NodeJS.
|
|
212
|
-
declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.
|
|
213
|
-
declare function clearInterval(intervalId: NodeJS.
|
|
214
|
-
declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]):
|
|
215
|
+
declare function clearTimeout(timeoutId: NodeJS.Timeout): void;
|
|
216
|
+
declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
217
|
+
declare function clearInterval(intervalId: NodeJS.Timeout): void;
|
|
218
|
+
declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
|
215
219
|
declare namespace setImmediate {
|
|
216
220
|
function __promisify__(): Promise<void>;
|
|
217
221
|
function __promisify__<T>(value: T): Promise<T>;
|
|
218
222
|
}
|
|
219
|
-
declare function clearImmediate(immediateId:
|
|
223
|
+
declare function clearImmediate(immediateId: NodeJS.Immediate): void;
|
|
220
224
|
|
|
221
225
|
// TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version.
|
|
222
226
|
interface NodeRequireFunction {
|
|
@@ -955,9 +959,9 @@ declare namespace NodeJS {
|
|
|
955
959
|
Uint8ClampedArray: Function;
|
|
956
960
|
WeakMap: WeakMapConstructor;
|
|
957
961
|
WeakSet: WeakSetConstructor;
|
|
958
|
-
clearImmediate: (immediateId:
|
|
959
|
-
clearInterval: (intervalId:
|
|
960
|
-
clearTimeout: (timeoutId:
|
|
962
|
+
clearImmediate: (immediateId: Immediate) => void;
|
|
963
|
+
clearInterval: (intervalId: Timeout) => void;
|
|
964
|
+
clearTimeout: (timeoutId: Timeout) => void;
|
|
961
965
|
console: typeof console;
|
|
962
966
|
decodeURI: typeof decodeURI;
|
|
963
967
|
decodeURIComponent: typeof decodeURIComponent;
|
|
@@ -972,9 +976,9 @@ declare namespace NodeJS {
|
|
|
972
976
|
parseInt: typeof parseInt;
|
|
973
977
|
process: Process;
|
|
974
978
|
root: Global;
|
|
975
|
-
setImmediate: (callback: (...args: any[]) => void, ...args: any[]) =>
|
|
976
|
-
setInterval: (callback: (...args: any[]) => void, ms: number, ...args: any[]) =>
|
|
977
|
-
setTimeout: (callback: (...args: any[]) => void, ms: number, ...args: any[]) =>
|
|
979
|
+
setImmediate: (callback: (...args: any[]) => void, ...args: any[]) => Immediate;
|
|
980
|
+
setInterval: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timeout;
|
|
981
|
+
setTimeout: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timeout;
|
|
978
982
|
undefined: typeof undefined;
|
|
979
983
|
unescape: (str: string) => string;
|
|
980
984
|
gc: () => void;
|
|
@@ -983,6 +987,19 @@ declare namespace NodeJS {
|
|
|
983
987
|
|
|
984
988
|
interface Timer {
|
|
985
989
|
ref(): void;
|
|
990
|
+
refresh(): void;
|
|
991
|
+
unref(): void;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
class Immediate {
|
|
995
|
+
ref(): void;
|
|
996
|
+
unref(): void;
|
|
997
|
+
_onImmediate: Function; // to distinguish it from the Timeout class
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
class Timeout implements Timer {
|
|
1001
|
+
ref(): void;
|
|
1002
|
+
refresh(): void;
|
|
986
1003
|
unref(): void;
|
|
987
1004
|
}
|
|
988
1005
|
|
|
@@ -7207,20 +7224,20 @@ declare module "v8" {
|
|
|
7207
7224
|
}
|
|
7208
7225
|
|
|
7209
7226
|
declare module "timers" {
|
|
7210
|
-
function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.
|
|
7227
|
+
function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
7211
7228
|
namespace setTimeout {
|
|
7212
7229
|
function __promisify__(ms: number): Promise<void>;
|
|
7213
7230
|
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
|
7214
7231
|
}
|
|
7215
|
-
function clearTimeout(timeoutId: NodeJS.
|
|
7216
|
-
function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.
|
|
7217
|
-
function clearInterval(intervalId: NodeJS.
|
|
7218
|
-
function setImmediate(callback: (...args: any[]) => void, ...args: any[]):
|
|
7232
|
+
function clearTimeout(timeoutId: NodeJS.Timeout): void;
|
|
7233
|
+
function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
7234
|
+
function clearInterval(intervalId: NodeJS.Timeout): void;
|
|
7235
|
+
function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
|
7219
7236
|
namespace setImmediate {
|
|
7220
7237
|
function __promisify__(): Promise<void>;
|
|
7221
7238
|
function __promisify__<T>(value: T): Promise<T>;
|
|
7222
7239
|
}
|
|
7223
|
-
function clearImmediate(immediateId:
|
|
7240
|
+
function clearImmediate(immediateId: NodeJS.Immediate): void;
|
|
7224
7241
|
}
|
|
7225
7242
|
|
|
7226
7243
|
declare module "console" {
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.11.
|
|
3
|
+
"version": "10.11.7",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -162,6 +162,6 @@
|
|
|
162
162
|
},
|
|
163
163
|
"scripts": {},
|
|
164
164
|
"dependencies": {},
|
|
165
|
-
"typesPublisherContentHash": "
|
|
165
|
+
"typesPublisherContentHash": "f1d61fa3e0717679980bd54858e1d3a1bca0e466a5f0e4477e5bbb9183f0bb0f",
|
|
166
166
|
"typeScriptVersion": "2.0"
|
|
167
167
|
}
|