@types/node 16.18.30 → 16.18.32
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 v16.18/README.md +1 -1
- node v16.18/buffer.d.ts +5 -2
- node v16.18/package.json +2 -2
- node v16.18/ts4.8/buffer.d.ts +5 -2
- node v16.18/ts4.8/url.d.ts +2 -2
- node v16.18/ts4.8/util.d.ts +1 -1
- node v16.18/url.d.ts +2 -2
- node v16.18/util.d.ts +1 -1
node v16.18/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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 21 May 2023 21:02:55 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.18/buffer.d.ts
CHANGED
|
@@ -167,6 +167,9 @@ declare module 'buffer' {
|
|
|
167
167
|
export import atob = globalThis.atob;
|
|
168
168
|
export import btoa = globalThis.btoa;
|
|
169
169
|
global {
|
|
170
|
+
namespace NodeJS {
|
|
171
|
+
export { BufferEncoding };
|
|
172
|
+
}
|
|
170
173
|
// Buffer class
|
|
171
174
|
type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
|
|
172
175
|
type WithImplicitCoercion<T> =
|
|
@@ -2206,7 +2209,7 @@ declare module 'buffer' {
|
|
|
2206
2209
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2207
2210
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2208
2211
|
* @since v15.13.0
|
|
2209
|
-
* @
|
|
2212
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2210
2213
|
* @param data The Base64-encoded input string.
|
|
2211
2214
|
*/
|
|
2212
2215
|
function atob(data: string): string;
|
|
@@ -2222,7 +2225,7 @@ declare module 'buffer' {
|
|
|
2222
2225
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2223
2226
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2224
2227
|
* @since v15.13.0
|
|
2225
|
-
* @
|
|
2228
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2226
2229
|
* @param data An ASCII (Latin1) string.
|
|
2227
2230
|
*/
|
|
2228
2231
|
function btoa(data: string): string;
|
node v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.32",
|
|
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": "66470f9fe34fa073032c79661b47b9b16b4ed00634052f0090e753c5f9ba42b4",
|
|
231
231
|
"typeScriptVersion": "4.3"
|
|
232
232
|
}
|
node v16.18/ts4.8/buffer.d.ts
CHANGED
|
@@ -167,6 +167,9 @@ declare module 'buffer' {
|
|
|
167
167
|
export import atob = globalThis.atob;
|
|
168
168
|
export import btoa = globalThis.btoa;
|
|
169
169
|
global {
|
|
170
|
+
namespace NodeJS {
|
|
171
|
+
export { BufferEncoding };
|
|
172
|
+
}
|
|
170
173
|
// Buffer class
|
|
171
174
|
type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
|
|
172
175
|
type WithImplicitCoercion<T> =
|
|
@@ -2206,7 +2209,7 @@ declare module 'buffer' {
|
|
|
2206
2209
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2207
2210
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2208
2211
|
* @since v15.13.0
|
|
2209
|
-
* @
|
|
2212
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2210
2213
|
* @param data The Base64-encoded input string.
|
|
2211
2214
|
*/
|
|
2212
2215
|
function atob(data: string): string;
|
|
@@ -2222,7 +2225,7 @@ declare module 'buffer' {
|
|
|
2222
2225
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2223
2226
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2224
2227
|
* @since v15.13.0
|
|
2225
|
-
* @
|
|
2228
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2226
2229
|
* @param data An ASCII (Latin1) string.
|
|
2227
2230
|
*/
|
|
2228
2231
|
function btoa(data: string): string;
|
node v16.18/ts4.8/url.d.ts
CHANGED
|
@@ -159,7 +159,7 @@ declare module 'url' {
|
|
|
159
159
|
* string, an `Error` is thrown.
|
|
160
160
|
* * `result` is returned.
|
|
161
161
|
* @since v0.1.25
|
|
162
|
-
* @
|
|
162
|
+
* @legacy Use the WHATWG URL API instead.
|
|
163
163
|
* @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()`.
|
|
164
164
|
*/
|
|
165
165
|
function format(urlObject: UrlObject | string): string;
|
|
@@ -192,7 +192,7 @@ declare module 'url' {
|
|
|
192
192
|
* resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
193
193
|
* ```
|
|
194
194
|
* @since v0.1.25
|
|
195
|
-
* @
|
|
195
|
+
* @legacy Use the WHATWG URL API instead.
|
|
196
196
|
* @param from The Base URL being resolved against.
|
|
197
197
|
* @param to The HREF URL being resolved.
|
|
198
198
|
*/
|
node v16.18/ts4.8/util.d.ts
CHANGED
|
@@ -472,7 +472,7 @@ declare module 'util' {
|
|
|
472
472
|
* stream.write('With ES6');
|
|
473
473
|
* ```
|
|
474
474
|
* @since v0.3.0
|
|
475
|
-
* @
|
|
475
|
+
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
476
476
|
*/
|
|
477
477
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
478
478
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
node v16.18/url.d.ts
CHANGED
|
@@ -159,7 +159,7 @@ declare module 'url' {
|
|
|
159
159
|
* string, an `Error` is thrown.
|
|
160
160
|
* * `result` is returned.
|
|
161
161
|
* @since v0.1.25
|
|
162
|
-
* @
|
|
162
|
+
* @legacy Use the WHATWG URL API instead.
|
|
163
163
|
* @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()`.
|
|
164
164
|
*/
|
|
165
165
|
function format(urlObject: UrlObject | string): string;
|
|
@@ -192,7 +192,7 @@ declare module 'url' {
|
|
|
192
192
|
* resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
193
193
|
* ```
|
|
194
194
|
* @since v0.1.25
|
|
195
|
-
* @
|
|
195
|
+
* @legacy Use the WHATWG URL API instead.
|
|
196
196
|
* @param from The Base URL being resolved against.
|
|
197
197
|
* @param to The HREF URL being resolved.
|
|
198
198
|
*/
|
node v16.18/util.d.ts
CHANGED
|
@@ -472,7 +472,7 @@ declare module 'util' {
|
|
|
472
472
|
* stream.write('With ES6');
|
|
473
473
|
* ```
|
|
474
474
|
* @since v0.3.0
|
|
475
|
-
* @
|
|
475
|
+
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
476
476
|
*/
|
|
477
477
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
478
478
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|