@types/node 16.11.8 → 16.11.9
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/package.json +2 -2
- node/process.d.ts +5 -1
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://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: Fri, 19 Nov 2021 08:31:10 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.11.
|
|
3
|
+
"version": "16.11.9",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -225,6 +225,6 @@
|
|
|
225
225
|
},
|
|
226
226
|
"scripts": {},
|
|
227
227
|
"dependencies": {},
|
|
228
|
-
"typesPublisherContentHash": "
|
|
228
|
+
"typesPublisherContentHash": "d38d785af313406345e5384ce39a1c5750b72c1893eb022dca68dc7f95f943cf",
|
|
229
229
|
"typeScriptVersion": "3.8"
|
|
230
230
|
}
|
node/process.d.ts
CHANGED
|
@@ -94,7 +94,11 @@ declare module 'process' {
|
|
|
94
94
|
type ExitListener = (code: number) => void;
|
|
95
95
|
type RejectionHandledListener = (promise: Promise<unknown>) => void;
|
|
96
96
|
type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
|
|
97
|
-
|
|
97
|
+
/**
|
|
98
|
+
* Most of the time the unhandledRejection will be an Error, but this should not be relied upon
|
|
99
|
+
* as *anything* can be thrown/rejected, it is therefore unsafe to assume the the value is an Error.
|
|
100
|
+
*/
|
|
101
|
+
type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
|
|
98
102
|
type WarningListener = (warning: Error) => void;
|
|
99
103
|
type MessageListener = (message: unknown, sendHandle: unknown) => void;
|
|
100
104
|
type SignalsListener = (signal: Signals) => void;
|