@types/node 18.16.10 → 18.16.12
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 v18.16/README.md +1 -1
- node v18.16/buffer.d.ts +2 -2
- node v18.16/package.json +2 -2
- node v18.16/test.d.ts +12 -18
- node v18.16/ts4.8/buffer.d.ts +2 -2
- node v18.16/ts4.8/test.d.ts +12 -18
- node v18.16/ts4.8/url.d.ts +3 -3
- node v18.16/ts4.8/util.d.ts +1 -1
- node v18.16/url.d.ts +3 -3
- node v18.16/util.d.ts +1 -1
node v18.16/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/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue, 16 May 2023
|
|
11
|
+
* Last updated: Tue, 16 May 2023 20:02:58 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node v18.16/buffer.d.ts
CHANGED
|
@@ -2280,7 +2280,7 @@ declare module 'buffer' {
|
|
|
2280
2280
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2281
2281
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2282
2282
|
* @since v15.13.0, v14.17.0
|
|
2283
|
-
* @
|
|
2283
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2284
2284
|
* @param data The Base64-encoded input string.
|
|
2285
2285
|
*/
|
|
2286
2286
|
function atob(data: string): string;
|
|
@@ -2296,7 +2296,7 @@ declare module 'buffer' {
|
|
|
2296
2296
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2297
2297
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2298
2298
|
* @since v15.13.0, v14.17.0
|
|
2299
|
-
* @
|
|
2299
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2300
2300
|
* @param data An ASCII (Latin1) string.
|
|
2301
2301
|
*/
|
|
2302
2302
|
function btoa(data: string): string;
|
node v18.16/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.16.
|
|
3
|
+
"version": "18.16.12",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "7c20ac05a7cff74f5cda49e8abedbe53c1f3d2596bb8184998891ce7fe82e0c5",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
node v18.16/test.d.ts
CHANGED
|
@@ -83,22 +83,22 @@ declare module 'node:test' {
|
|
|
83
83
|
* @param fn The function under test. If the test uses callbacks, the callback function is
|
|
84
84
|
* passed as the second argument. Default: A no-op function.
|
|
85
85
|
*/
|
|
86
|
-
function it(name?: string, options?: TestOptions, fn?:
|
|
87
|
-
function it(name?: string, fn?:
|
|
88
|
-
function it(options?: TestOptions, fn?:
|
|
89
|
-
function it(fn?:
|
|
86
|
+
function it(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
87
|
+
function it(name?: string, fn?: TestFn): void;
|
|
88
|
+
function it(options?: TestOptions, fn?: TestFn): void;
|
|
89
|
+
function it(fn?: TestFn): void;
|
|
90
90
|
namespace it {
|
|
91
91
|
// Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
|
|
92
|
-
function skip(name?: string, options?: TestOptions, fn?:
|
|
93
|
-
function skip(name?: string, fn?:
|
|
94
|
-
function skip(options?: TestOptions, fn?:
|
|
95
|
-
function skip(fn?:
|
|
92
|
+
function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
93
|
+
function skip(name?: string, fn?: TestFn): void;
|
|
94
|
+
function skip(options?: TestOptions, fn?: TestFn): void;
|
|
95
|
+
function skip(fn?: TestFn): void;
|
|
96
96
|
|
|
97
97
|
// Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
|
|
98
|
-
function todo(name?: string, options?: TestOptions, fn?:
|
|
99
|
-
function todo(name?: string, fn?:
|
|
100
|
-
function todo(options?: TestOptions, fn?:
|
|
101
|
-
function todo(fn?:
|
|
98
|
+
function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
99
|
+
function todo(name?: string, fn?: TestFn): void;
|
|
100
|
+
function todo(options?: TestOptions, fn?: TestFn): void;
|
|
101
|
+
function todo(fn?: TestFn): void;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -114,12 +114,6 @@ declare module 'node:test' {
|
|
|
114
114
|
*/
|
|
115
115
|
type SuiteFn = (done: (result?: any) => void) => void;
|
|
116
116
|
|
|
117
|
-
/**
|
|
118
|
-
* The type of a function under test.
|
|
119
|
-
* If the test uses callbacks, the callback function is passed as an argument
|
|
120
|
-
*/
|
|
121
|
-
type ItFn = (done: (result?: any) => void) => any;
|
|
122
|
-
|
|
123
117
|
interface RunOptions {
|
|
124
118
|
/**
|
|
125
119
|
* If a number is provided, then that many files would run in parallel.
|
node v18.16/ts4.8/buffer.d.ts
CHANGED
|
@@ -2280,7 +2280,7 @@ declare module 'buffer' {
|
|
|
2280
2280
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2281
2281
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2282
2282
|
* @since v15.13.0, v14.17.0
|
|
2283
|
-
* @
|
|
2283
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2284
2284
|
* @param data The Base64-encoded input string.
|
|
2285
2285
|
*/
|
|
2286
2286
|
function atob(data: string): string;
|
|
@@ -2296,7 +2296,7 @@ declare module 'buffer' {
|
|
|
2296
2296
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2297
2297
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2298
2298
|
* @since v15.13.0, v14.17.0
|
|
2299
|
-
* @
|
|
2299
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2300
2300
|
* @param data An ASCII (Latin1) string.
|
|
2301
2301
|
*/
|
|
2302
2302
|
function btoa(data: string): string;
|
node v18.16/ts4.8/test.d.ts
CHANGED
|
@@ -83,22 +83,22 @@ declare module 'node:test' {
|
|
|
83
83
|
* @param fn The function under test. If the test uses callbacks, the callback function is
|
|
84
84
|
* passed as the second argument. Default: A no-op function.
|
|
85
85
|
*/
|
|
86
|
-
function it(name?: string, options?: TestOptions, fn?:
|
|
87
|
-
function it(name?: string, fn?:
|
|
88
|
-
function it(options?: TestOptions, fn?:
|
|
89
|
-
function it(fn?:
|
|
86
|
+
function it(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
87
|
+
function it(name?: string, fn?: TestFn): void;
|
|
88
|
+
function it(options?: TestOptions, fn?: TestFn): void;
|
|
89
|
+
function it(fn?: TestFn): void;
|
|
90
90
|
namespace it {
|
|
91
91
|
// Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
|
|
92
|
-
function skip(name?: string, options?: TestOptions, fn?:
|
|
93
|
-
function skip(name?: string, fn?:
|
|
94
|
-
function skip(options?: TestOptions, fn?:
|
|
95
|
-
function skip(fn?:
|
|
92
|
+
function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
93
|
+
function skip(name?: string, fn?: TestFn): void;
|
|
94
|
+
function skip(options?: TestOptions, fn?: TestFn): void;
|
|
95
|
+
function skip(fn?: TestFn): void;
|
|
96
96
|
|
|
97
97
|
// Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
|
|
98
|
-
function todo(name?: string, options?: TestOptions, fn?:
|
|
99
|
-
function todo(name?: string, fn?:
|
|
100
|
-
function todo(options?: TestOptions, fn?:
|
|
101
|
-
function todo(fn?:
|
|
98
|
+
function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
99
|
+
function todo(name?: string, fn?: TestFn): void;
|
|
100
|
+
function todo(options?: TestOptions, fn?: TestFn): void;
|
|
101
|
+
function todo(fn?: TestFn): void;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -114,12 +114,6 @@ declare module 'node:test' {
|
|
|
114
114
|
*/
|
|
115
115
|
type SuiteFn = (done: (result?: any) => void) => void;
|
|
116
116
|
|
|
117
|
-
/**
|
|
118
|
-
* The type of a function under test.
|
|
119
|
-
* If the test uses callbacks, the callback function is passed as an argument
|
|
120
|
-
*/
|
|
121
|
-
type ItFn = (done: (result?: any) => void) => any;
|
|
122
|
-
|
|
123
117
|
interface RunOptions {
|
|
124
118
|
/**
|
|
125
119
|
* If a number is provided, then that many files would run in parallel.
|
node v18.16/ts4.8/url.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ declare module 'url' {
|
|
|
135
135
|
* string, an `Error` is thrown.
|
|
136
136
|
* * `result` is returned.
|
|
137
137
|
* @since v0.1.25
|
|
138
|
-
* @
|
|
138
|
+
* @legacy Use the WHATWG URL API instead.
|
|
139
139
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
140
140
|
*/
|
|
141
141
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
@@ -199,7 +199,7 @@ declare module 'url' {
|
|
|
199
199
|
* string, an `Error` is thrown.
|
|
200
200
|
* * `result` is returned.
|
|
201
201
|
* @since v0.1.25
|
|
202
|
-
* @
|
|
202
|
+
* @legacy Use the WHATWG URL API instead.
|
|
203
203
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
204
204
|
*/
|
|
205
205
|
function format(urlObject: UrlObject | string): string;
|
|
@@ -232,7 +232,7 @@ declare module 'url' {
|
|
|
232
232
|
* resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
233
233
|
* ```
|
|
234
234
|
* @since v0.1.25
|
|
235
|
-
* @
|
|
235
|
+
* @legacy Use the WHATWG URL API instead.
|
|
236
236
|
* @param from The base URL to use if `to` is a relative URL.
|
|
237
237
|
* @param to The target URL to resolve.
|
|
238
238
|
*/
|
node v18.16/ts4.8/util.d.ts
CHANGED
|
@@ -556,7 +556,7 @@ declare module 'util' {
|
|
|
556
556
|
* stream.write('With ES6');
|
|
557
557
|
* ```
|
|
558
558
|
* @since v0.3.0
|
|
559
|
-
* @
|
|
559
|
+
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
560
560
|
*/
|
|
561
561
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
562
562
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
node v18.16/url.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ declare module 'url' {
|
|
|
135
135
|
* string, an `Error` is thrown.
|
|
136
136
|
* * `result` is returned.
|
|
137
137
|
* @since v0.1.25
|
|
138
|
-
* @
|
|
138
|
+
* @legacy Use the WHATWG URL API instead.
|
|
139
139
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
140
140
|
*/
|
|
141
141
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
@@ -199,7 +199,7 @@ declare module 'url' {
|
|
|
199
199
|
* string, an `Error` is thrown.
|
|
200
200
|
* * `result` is returned.
|
|
201
201
|
* @since v0.1.25
|
|
202
|
-
* @
|
|
202
|
+
* @legacy Use the WHATWG URL API instead.
|
|
203
203
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
204
204
|
*/
|
|
205
205
|
function format(urlObject: UrlObject | string): string;
|
|
@@ -232,7 +232,7 @@ declare module 'url' {
|
|
|
232
232
|
* resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
233
233
|
* ```
|
|
234
234
|
* @since v0.1.25
|
|
235
|
-
* @
|
|
235
|
+
* @legacy Use the WHATWG URL API instead.
|
|
236
236
|
* @param from The base URL to use if `to` is a relative URL.
|
|
237
237
|
* @param to The target URL to resolve.
|
|
238
238
|
*/
|
node v18.16/util.d.ts
CHANGED
|
@@ -556,7 +556,7 @@ declare module 'util' {
|
|
|
556
556
|
* stream.write('With ES6');
|
|
557
557
|
* ```
|
|
558
558
|
* @since v0.3.0
|
|
559
|
-
* @
|
|
559
|
+
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
560
560
|
*/
|
|
561
561
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
562
562
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|