@types/node 18.7.20 → 18.7.22
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 +1 -0
- node/package.json +2 -2
- node/test.d.ts +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:
|
|
11
|
+
* Last updated: Mon, 26 Sep 2022 14:02:57 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
|
@@ -88,6 +88,7 @@ interface RelativeIndexable<T> {
|
|
|
88
88
|
}
|
|
89
89
|
interface String extends RelativeIndexable<string> {}
|
|
90
90
|
interface Array<T> extends RelativeIndexable<T> {}
|
|
91
|
+
interface ReadonlyArray<T> extends RelativeIndexable<T> {}
|
|
91
92
|
interface Int8Array extends RelativeIndexable<number> {}
|
|
92
93
|
interface Uint8Array extends RelativeIndexable<number> {}
|
|
93
94
|
interface Uint8ClampedArray extends RelativeIndexable<number> {}
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.7.
|
|
3
|
+
"version": "18.7.22",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "433df0fc73a98967e56d31dfecf38f69e1cf5d52d6affe83fb990ef57b2f68ae",
|
|
231
231
|
"typeScriptVersion": "4.1"
|
|
232
232
|
}
|
node/test.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare module 'node:test' {
|
|
|
50
50
|
function test(options?: TestOptions, fn?: TestFn): Promise<void>;
|
|
51
51
|
function test(fn?: TestFn): Promise<void>;
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
/**
|
|
54
54
|
* @since v18.6.0
|
|
55
55
|
* @param name The name of the suite, which is displayed when reporting suite results.
|
|
56
56
|
* Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
|
|
@@ -62,7 +62,7 @@ declare module 'node:test' {
|
|
|
62
62
|
function describe(options?: TestOptions, fn?: SuiteFn): void;
|
|
63
63
|
function describe(fn?: SuiteFn): void;
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
/**
|
|
66
66
|
* @since v18.6.0
|
|
67
67
|
* @param name The name of the test, which is displayed when reporting test results.
|
|
68
68
|
* Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
|