@types/node 10.17.56 → 10.17.60
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 v10.17/README.md +2 -2
- node v10.17/async_hooks.d.ts +2 -2
- node v10.17/globals.d.ts +42 -1
- node v10.17/http.d.ts +1 -0
- node v10.17/index.d.ts +0 -1
- node v10.17/package.json +2 -7
- node v10.17/repl.d.ts +3 -3
- node v10.17/vm.d.ts +1 -1
node v10.17/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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/v10.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 12 May 2021 19:31:33 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Chigozirim C.](https://github.com/smac89), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Jeremie Rodriguez](https://github.com/jeremiergz), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Minh Son Nguyen](https://github.com/nguymin4), and [ExE Boss](https://github.com/ExE-Boss).
|
node v10.17/async_hooks.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ declare module "async_hooks" {
|
|
|
71
71
|
interface AsyncResourceOptions {
|
|
72
72
|
/**
|
|
73
73
|
* The ID of the execution context that created this async event.
|
|
74
|
-
*
|
|
74
|
+
* @default executionAsyncId()
|
|
75
75
|
*/
|
|
76
76
|
triggerAsyncId?: number;
|
|
77
77
|
|
|
@@ -80,7 +80,7 @@ declare module "async_hooks" {
|
|
|
80
80
|
* This usually does not need to be set (even if `emitDestroy` is called
|
|
81
81
|
* manually), unless the resource's `asyncId` is retrieved and the
|
|
82
82
|
* sensitive API's `emitDestroy` is called with it.
|
|
83
|
-
*
|
|
83
|
+
* @default false
|
|
84
84
|
*/
|
|
85
85
|
requireManualDestroy?: boolean;
|
|
86
86
|
}
|
node v10.17/globals.d.ts
CHANGED
|
@@ -712,6 +712,32 @@ declare namespace NodeJS {
|
|
|
712
712
|
bigint(): bigint;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
+
interface EmitWarningOptions {
|
|
716
|
+
/**
|
|
717
|
+
* When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
|
|
718
|
+
*
|
|
719
|
+
* @default 'Warning'
|
|
720
|
+
*/
|
|
721
|
+
type?: string;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* A unique identifier for the warning instance being emitted.
|
|
725
|
+
*/
|
|
726
|
+
code?: string;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
|
|
730
|
+
*
|
|
731
|
+
* @default process.emitWarning
|
|
732
|
+
*/
|
|
733
|
+
ctor?: Function;
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Additional text to include with the error.
|
|
737
|
+
*/
|
|
738
|
+
detail?: string;
|
|
739
|
+
}
|
|
740
|
+
|
|
715
741
|
interface Process extends EventEmitter {
|
|
716
742
|
stdout: WriteStream;
|
|
717
743
|
stderr: WriteStream;
|
|
@@ -725,7 +751,22 @@ declare namespace NodeJS {
|
|
|
725
751
|
chdir(directory: string): void;
|
|
726
752
|
cwd(): string;
|
|
727
753
|
debugPort: number;
|
|
728
|
-
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
|
|
757
|
+
*
|
|
758
|
+
* These can be listened for by adding a handler to the `'warning'` event.
|
|
759
|
+
*
|
|
760
|
+
* @param warning The warning to emit.
|
|
761
|
+
* @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
|
|
762
|
+
* @param code A unique identifier for the warning instance being emitted.
|
|
763
|
+
* @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
|
|
764
|
+
*/
|
|
765
|
+
emitWarning(warning: string | Error, ctor?: Function): void;
|
|
766
|
+
emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
|
|
767
|
+
emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
|
|
768
|
+
emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
|
|
769
|
+
|
|
729
770
|
env: ProcessEnv;
|
|
730
771
|
exit(code?: number): never;
|
|
731
772
|
exitCode?: number;
|
node v10.17/http.d.ts
CHANGED
node v10.17/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
// Alberto Schiabel <https://github.com/jkomyno>
|
|
6
6
|
// Alvis HT Tang <https://github.com/alvis>
|
|
7
7
|
// Andrew Makarov <https://github.com/r3nya>
|
|
8
|
-
// Bruno Scheufler <https://github.com/brunoscheufler>
|
|
9
8
|
// Chigozirim C. <https://github.com/smac89>
|
|
10
9
|
// Deividas Bakanas <https://github.com/DeividasBakanas>
|
|
11
10
|
// Eugene Y. Q. Shen <https://github.com/eyqs>
|
node v10.17/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.17.
|
|
3
|
+
"version": "10.17.60",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -29,11 +29,6 @@
|
|
|
29
29
|
"url": "https://github.com/r3nya",
|
|
30
30
|
"githubUsername": "r3nya"
|
|
31
31
|
},
|
|
32
|
-
{
|
|
33
|
-
"name": "Bruno Scheufler",
|
|
34
|
-
"url": "https://github.com/brunoscheufler",
|
|
35
|
-
"githubUsername": "brunoscheufler"
|
|
36
|
-
},
|
|
37
32
|
{
|
|
38
33
|
"name": "Chigozirim C.",
|
|
39
34
|
"url": "https://github.com/smac89",
|
|
@@ -181,6 +176,6 @@
|
|
|
181
176
|
},
|
|
182
177
|
"scripts": {},
|
|
183
178
|
"dependencies": {},
|
|
184
|
-
"typesPublisherContentHash": "
|
|
179
|
+
"typesPublisherContentHash": "043aec4c1325df260459806b88c55ed404fbcdbdcc6f21b372a2ec206b4a218d",
|
|
185
180
|
"typeScriptVersion": "3.5"
|
|
186
181
|
}
|
node v10.17/repl.d.ts
CHANGED
|
@@ -6,17 +6,17 @@ declare module "repl" {
|
|
|
6
6
|
interface ReplOptions {
|
|
7
7
|
/**
|
|
8
8
|
* The input prompt to display.
|
|
9
|
-
*
|
|
9
|
+
* @default "> "
|
|
10
10
|
*/
|
|
11
11
|
prompt?: string;
|
|
12
12
|
/**
|
|
13
13
|
* The `Readable` stream from which REPL input will be read.
|
|
14
|
-
*
|
|
14
|
+
* @default process.stdin
|
|
15
15
|
*/
|
|
16
16
|
input?: NodeJS.ReadableStream;
|
|
17
17
|
/**
|
|
18
18
|
* The `Writable` stream to which REPL output will be written.
|
|
19
|
-
*
|
|
19
|
+
* @default process.stdout
|
|
20
20
|
*/
|
|
21
21
|
output?: NodeJS.WritableStream;
|
|
22
22
|
/**
|