@types/node 14.18.52 → 14.18.54

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 v14.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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 26 Jun 2023 18:32:42 GMT
11
+ * Last updated: Fri, 21 Jul 2023 22:02:49 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
@@ -245,7 +245,7 @@ declare class Buffer extends Uint8Array {
245
245
  * If parameter is omitted, buffer will be filled with zeros.
246
246
  * @param encoding encoding used for call to buf.fill while initalizing
247
247
  */
248
- static alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
248
+ static alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
249
249
  /**
250
250
  * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
251
251
  * of the newly created Buffer are unknown and may contain sensitive data.
node v14.18/http2.d.ts CHANGED
@@ -80,7 +80,7 @@ declare module 'http2' {
80
80
  readonly sentHeaders: OutgoingHttpHeaders;
81
81
  readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined;
82
82
  readonly sentTrailers?: OutgoingHttpHeaders | undefined;
83
- readonly session: Http2Session;
83
+ readonly session: Http2Session | undefined;
84
84
  readonly state: StreamState;
85
85
 
86
86
  close(code?: number, callback?: () => void): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.18.52",
3
+ "version": "14.18.54",
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": "2fd47187bc43b5eb81912abf475ce6b003c9edaccccf59307ab1b3c316a82a85",
230
+ "typesPublisherContentHash": "a7507d7b54e9c5ec3472b27bbec4434a88a95a3cbc9ed57a4977cb9d8604e873",
231
231
  "typeScriptVersion": "4.3"
232
232
  }
@@ -243,7 +243,7 @@ declare class Buffer extends Uint8Array {
243
243
  * If parameter is omitted, buffer will be filled with zeros.
244
244
  * @param encoding encoding used for call to buf.fill while initalizing
245
245
  */
246
- static alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
246
+ static alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
247
247
  /**
248
248
  * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
249
249
  * of the newly created Buffer are unknown and may contain sensitive data.
@@ -80,7 +80,7 @@ declare module 'http2' {
80
80
  readonly sentHeaders: OutgoingHttpHeaders;
81
81
  readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined;
82
82
  readonly sentTrailers?: OutgoingHttpHeaders | undefined;
83
- readonly session: Http2Session;
83
+ readonly session: Http2Session | undefined;
84
84
  readonly state: StreamState;
85
85
 
86
86
  close(code?: number, callback?: () => void): void;