@types/node 17.0.1 → 17.0.5

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sun, 19 Dec 2021 19:01:19 GMT
11
+ * Last updated: Sun, 26 Dec 2021 13:01:23 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node/http2.d.ts CHANGED
@@ -1349,7 +1349,7 @@ declare module 'http2' {
1349
1349
  * ```
1350
1350
  * @since v8.4.0
1351
1351
  */
1352
- readonly url: string;
1352
+ url: string;
1353
1353
  /**
1354
1354
  * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
1355
1355
  * provided, then it is added as a listener on the `'timeout'` event on
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.1",
3
+ "version": "17.0.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -225,6 +225,6 @@
225
225
  },
226
226
  "scripts": {},
227
227
  "dependencies": {},
228
- "typesPublisherContentHash": "8667a11eb4a6bd035e5c7de4fa77b53a7a1357743cea3b529bff4967b84e991c",
228
+ "typesPublisherContentHash": "3c0adb53431cb8fd2d161319df594cb0476c94f9f82ba1951c1ce1558edc85b9",
229
229
  "typeScriptVersion": "3.8"
230
230
  }
node/path.d.ts CHANGED
@@ -170,3 +170,11 @@ declare module 'node:path' {
170
170
  import path = require('path');
171
171
  export = path;
172
172
  }
173
+ declare module 'node:path/posix' {
174
+ import path = require('path/posix');
175
+ export = path;
176
+ }
177
+ declare module 'node:path/win32' {
178
+ import path = require('path/win32');
179
+ export = path;
180
+ }
node/perf_hooks.d.ts CHANGED
@@ -397,9 +397,11 @@ declare module 'perf_hooks' {
397
397
  options:
398
398
  | {
399
399
  entryTypes: ReadonlyArray<EntryType>;
400
+ buffered?: boolean | undefined;
400
401
  }
401
402
  | {
402
403
  type: EntryType;
404
+ buffered?: boolean | undefined;
403
405
  }
404
406
  ): void;
405
407
  }
node/tls.d.ts CHANGED
@@ -11,6 +11,7 @@
11
11
  declare module 'tls' {
12
12
  import { X509Certificate } from 'node:crypto';
13
13
  import * as net from 'node:net';
14
+ import * as stream from 'stream';
14
15
  const CLIENT_RENEG_LIMIT: number;
15
16
  const CLIENT_RENEG_WINDOW: number;
16
17
  interface Certificate {
@@ -516,7 +517,7 @@ declare module 'tls' {
516
517
  host?: string | undefined;
517
518
  port?: number | undefined;
518
519
  path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
519
- socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
520
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
520
521
  checkServerIdentity?: typeof checkServerIdentity | undefined;
521
522
  servername?: string | undefined; // SNI TLS Extension
522
523
  session?: Buffer | undefined;