@types/node 22.13.15 → 22.13.17

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.
Files changed (4) hide show
  1. node/README.md +1 -1
  2. node/fs.d.ts +6 -6
  3. node/https.d.ts +3 -1
  4. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (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: Tue, 01 Apr 2025 05:35:48 GMT
11
+ * Last updated: Tue, 01 Apr 2025 16:38:24 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/fs.d.ts CHANGED
@@ -581,7 +581,7 @@ declare module "fs" {
581
581
  * @since v0.8.6
582
582
  * @param [len=0]
583
583
  */
584
- export function truncate(path: PathLike, len: number | undefined | null, callback: NoParamCallback): void;
584
+ export function truncate(path: PathLike, len: number | undefined, callback: NoParamCallback): void;
585
585
  /**
586
586
  * Asynchronous truncate(2) - Truncate a file to a specified length.
587
587
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -593,7 +593,7 @@ declare module "fs" {
593
593
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
594
594
  * @param len If not specified, defaults to `0`.
595
595
  */
596
- function __promisify__(path: PathLike, len?: number | null): Promise<void>;
596
+ function __promisify__(path: PathLike, len?: number): Promise<void>;
597
597
  }
598
598
  /**
599
599
  * Truncates the file. Returns `undefined`. A file descriptor can also be
@@ -604,7 +604,7 @@ declare module "fs" {
604
604
  * @since v0.8.6
605
605
  * @param [len=0]
606
606
  */
607
- export function truncateSync(path: PathLike, len?: number | null): void;
607
+ export function truncateSync(path: PathLike, len?: number): void;
608
608
  /**
609
609
  * Truncates the file descriptor. No arguments other than a possible exception are
610
610
  * given to the completion callback.
@@ -648,7 +648,7 @@ declare module "fs" {
648
648
  * @since v0.8.6
649
649
  * @param [len=0]
650
650
  */
651
- export function ftruncate(fd: number, len: number | undefined | null, callback: NoParamCallback): void;
651
+ export function ftruncate(fd: number, len: number | undefined, callback: NoParamCallback): void;
652
652
  /**
653
653
  * Asynchronous ftruncate(2) - Truncate a file to a specified length.
654
654
  * @param fd A file descriptor.
@@ -660,7 +660,7 @@ declare module "fs" {
660
660
  * @param fd A file descriptor.
661
661
  * @param len If not specified, defaults to `0`.
662
662
  */
663
- function __promisify__(fd: number, len?: number | null): Promise<void>;
663
+ function __promisify__(fd: number, len?: number): Promise<void>;
664
664
  }
665
665
  /**
666
666
  * Truncates the file descriptor. Returns `undefined`.
@@ -670,7 +670,7 @@ declare module "fs" {
670
670
  * @since v0.8.6
671
671
  * @param [len=0]
672
672
  */
673
- export function ftruncateSync(fd: number, len?: number | null): void;
673
+ export function ftruncateSync(fd: number, len?: number): void;
674
674
  /**
675
675
  * Asynchronously changes owner and group of a file. No arguments other than a
676
676
  * possible exception are given to the completion callback.
node/https.d.ts CHANGED
@@ -16,7 +16,9 @@ declare module "https" {
16
16
  & http.RequestOptions
17
17
  & tls.SecureContextOptions
18
18
  & {
19
- checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
19
+ checkServerIdentity?:
20
+ | ((hostname: string, cert: tls.DetailedPeerCertificate) => Error | undefined)
21
+ | undefined;
20
22
  rejectUnauthorized?: boolean | undefined; // Defaults to true
21
23
  servername?: string | undefined; // SNI TLS Extension
22
24
  };
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.13.15",
3
+ "version": "22.13.17",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  "undici-types": "~6.20.0"
216
216
  },
217
217
  "peerDependencies": {},
218
- "typesPublisherContentHash": "bebb465a142d7ca74c4dd73a79a8456f371a527c6339bc8a9d910d5872fefb50",
218
+ "typesPublisherContentHash": "6eca3cb52deca8b9145e6472f459645fbaf18c531d910ee151bef28044e65c72",
219
219
  "typeScriptVersion": "5.1"
220
220
  }