@types/node 16.18.37 → 16.18.39

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 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: Mon, 26 Jun 2023 18:32:41 GMT
11
+ * Last updated: Fri, 21 Jul 2023 22:02:47 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
@@ -442,7 +442,7 @@ declare module 'buffer' {
442
442
  * @param [fill=0] A value to pre-fill the new `Buffer` with.
443
443
  * @param [encoding='utf8'] If `fill` is a string, this is its encoding.
444
444
  */
445
- alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
445
+ alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
446
446
  /**
447
447
  * 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.
448
448
  *
node v16.18/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
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.37",
3
+ "version": "16.18.39",
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": "d5c60b02050567c53727f8ea5b1efb6aff6c3325d86d32d8934012396233d984",
230
+ "typesPublisherContentHash": "9de734dc90d87a4ef624f9d0ea48726baf5d8b1f888043d9319b07fa2129d49d",
231
231
  "typeScriptVersion": "4.3"
232
232
  }
@@ -442,7 +442,7 @@ declare module 'buffer' {
442
442
  * @param [fill=0] A value to pre-fill the new `Buffer` with.
443
443
  * @param [encoding='utf8'] If `fill` is a string, this is its encoding.
444
444
  */
445
- alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
445
+ alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
446
446
  /**
447
447
  * 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.
448
448
  *
@@ -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
  *