@types/node 18.16.18 → 18.16.20
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 +1 -1
- node v18.16/http2.d.ts +1 -1
- node v18.16/package.json +2 -2
- node v18.16/ts4.8/buffer.d.ts +1 -1
- node v18.16/ts4.8/http2.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:
|
|
11
|
+
* Last updated: Fri, 21 Jul 2023 22:02:46 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
|
@@ -503,7 +503,7 @@ declare module 'buffer' {
|
|
|
503
503
|
* @param [fill=0] A value to pre-fill the new `Buffer` with.
|
|
504
504
|
* @param [encoding='utf8'] If `fill` is a string, this is its encoding.
|
|
505
505
|
*/
|
|
506
|
-
alloc(size: number, fill?: string |
|
|
506
|
+
alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
|
|
507
507
|
/**
|
|
508
508
|
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
|
|
509
509
|
*
|
node v18.16/http2.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ declare module 'http2' {
|
|
|
128
128
|
* value will be `undefined` after the `Http2Stream` instance is destroyed.
|
|
129
129
|
* @since v8.4.0
|
|
130
130
|
*/
|
|
131
|
-
readonly session: Http2Session;
|
|
131
|
+
readonly session: Http2Session | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Provides miscellaneous information about the current state of the`Http2Stream`.
|
|
134
134
|
*
|
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.20",
|
|
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": "ca635d44a6c538b8c1c8d795d0595f747ebe789f880e05a04f7569c8bc43ead2",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
node v18.16/ts4.8/buffer.d.ts
CHANGED
|
@@ -503,7 +503,7 @@ declare module 'buffer' {
|
|
|
503
503
|
* @param [fill=0] A value to pre-fill the new `Buffer` with.
|
|
504
504
|
* @param [encoding='utf8'] If `fill` is a string, this is its encoding.
|
|
505
505
|
*/
|
|
506
|
-
alloc(size: number, fill?: string |
|
|
506
|
+
alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
|
|
507
507
|
/**
|
|
508
508
|
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
|
|
509
509
|
*
|
node v18.16/ts4.8/http2.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ declare module 'http2' {
|
|
|
128
128
|
* value will be `undefined` after the `Http2Stream` instance is destroyed.
|
|
129
129
|
* @since v8.4.0
|
|
130
130
|
*/
|
|
131
|
-
readonly session: Http2Session;
|
|
131
|
+
readonly session: Http2Session | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Provides miscellaneous information about the current state of the`Http2Stream`.
|
|
134
134
|
*
|