@types/node 18.7.7 → 18.7.8
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/globals.d.ts +0 -23
- node/package.json +2 -2
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: Fri, 19 Aug 2022
|
|
11
|
+
* Last updated: Fri, 19 Aug 2022 23:02:54 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/globals.d.ts
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
// Error extensions
|
|
2
|
-
interface Error {
|
|
3
|
-
/**
|
|
4
|
-
* If present, the `error.cause` property is the underlying cause of the `Error`.
|
|
5
|
-
* It is used when catching an error and throwing a new one with a different message or code in order to still have access to the original error.
|
|
6
|
-
* @added v16.9.0
|
|
7
|
-
*/
|
|
8
|
-
cause?: unknown;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @added v16.9.0
|
|
13
|
-
*/
|
|
14
|
-
interface ErrorOptions {
|
|
15
|
-
/**
|
|
16
|
-
* The error that caused the newly created error.
|
|
17
|
-
* @added v16.9.0
|
|
18
|
-
*/
|
|
19
|
-
cause?: unknown;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
1
|
// Declare "static" methods in Error
|
|
23
2
|
interface ErrorConstructor {
|
|
24
|
-
new(message?: string, options?: ErrorOptions): Error;
|
|
25
|
-
(message?: string, options?: ErrorOptions): Error;
|
|
26
3
|
/** Create .stack property on a target object */
|
|
27
4
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
28
5
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.7.
|
|
3
|
+
"version": "18.7.8",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "cd432c68b37a5e2bdfd29e94c83191aa3220708137ac9cad45a6d88d2f8f9b17",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|