@types/node 20.17.29 → 20.17.31
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 v20.17/README.md +1 -1
- node v20.17/buffer.buffer.d.ts +1 -0
- node v20.17/fs.d.ts +6 -6
- node v20.17/package.json +2 -2
- node v20.17/ts5.6/buffer.buffer.d.ts +1 -0
node v20.17/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/v20.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 25 Apr 2025 06:39:35 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node v20.17/buffer.buffer.d.ts
CHANGED
@@ -160,6 +160,7 @@ declare module "buffer" {
|
|
160
160
|
* @param encoding The encoding of `string`. **Default:** `'utf8'`.
|
161
161
|
*/
|
162
162
|
from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
|
163
|
+
from(arrayOrString: WithImplicitCoercion<ArrayLike<number> | string>): Buffer<ArrayBuffer>;
|
163
164
|
/**
|
164
165
|
* Creates a new Buffer using the passed {data}
|
165
166
|
* @param values to create a new Buffer
|
node v20.17/fs.d.ts
CHANGED
@@ -579,7 +579,7 @@ declare module "fs" {
|
|
579
579
|
* @since v0.8.6
|
580
580
|
* @param [len=0]
|
581
581
|
*/
|
582
|
-
export function truncate(path: PathLike, len: number | undefined
|
582
|
+
export function truncate(path: PathLike, len: number | undefined, callback: NoParamCallback): void;
|
583
583
|
/**
|
584
584
|
* Asynchronous truncate(2) - Truncate a file to a specified length.
|
585
585
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
@@ -591,7 +591,7 @@ declare module "fs" {
|
|
591
591
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
592
592
|
* @param len If not specified, defaults to `0`.
|
593
593
|
*/
|
594
|
-
function __promisify__(path: PathLike, len?: number
|
594
|
+
function __promisify__(path: PathLike, len?: number): Promise<void>;
|
595
595
|
}
|
596
596
|
/**
|
597
597
|
* Truncates the file. Returns `undefined`. A file descriptor can also be
|
@@ -602,7 +602,7 @@ declare module "fs" {
|
|
602
602
|
* @since v0.8.6
|
603
603
|
* @param [len=0]
|
604
604
|
*/
|
605
|
-
export function truncateSync(path: PathLike, len?: number
|
605
|
+
export function truncateSync(path: PathLike, len?: number): void;
|
606
606
|
/**
|
607
607
|
* Truncates the file descriptor. No arguments other than a possible exception are
|
608
608
|
* given to the completion callback.
|
@@ -646,7 +646,7 @@ declare module "fs" {
|
|
646
646
|
* @since v0.8.6
|
647
647
|
* @param [len=0]
|
648
648
|
*/
|
649
|
-
export function ftruncate(fd: number, len: number | undefined
|
649
|
+
export function ftruncate(fd: number, len: number | undefined, callback: NoParamCallback): void;
|
650
650
|
/**
|
651
651
|
* Asynchronous ftruncate(2) - Truncate a file to a specified length.
|
652
652
|
* @param fd A file descriptor.
|
@@ -658,7 +658,7 @@ declare module "fs" {
|
|
658
658
|
* @param fd A file descriptor.
|
659
659
|
* @param len If not specified, defaults to `0`.
|
660
660
|
*/
|
661
|
-
function __promisify__(fd: number, len?: number
|
661
|
+
function __promisify__(fd: number, len?: number): Promise<void>;
|
662
662
|
}
|
663
663
|
/**
|
664
664
|
* Truncates the file descriptor. Returns `undefined`.
|
@@ -668,7 +668,7 @@ declare module "fs" {
|
|
668
668
|
* @since v0.8.6
|
669
669
|
* @param [len=0]
|
670
670
|
*/
|
671
|
-
export function ftruncateSync(fd: number, len?: number
|
671
|
+
export function ftruncateSync(fd: number, len?: number): void;
|
672
672
|
/**
|
673
673
|
* Asynchronously changes owner and group of a file. No arguments other than a
|
674
674
|
* possible exception are given to the completion callback.
|
node v20.17/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.17.
|
3
|
+
"version": "20.17.31",
|
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.19.2"
|
216
216
|
},
|
217
217
|
"peerDependencies": {},
|
218
|
-
"typesPublisherContentHash": "
|
218
|
+
"typesPublisherContentHash": "e970c2c5a2155536b73b743dd495c7ee7640d8bf183e27b8ba2c2592373a14f0",
|
219
219
|
"typeScriptVersion": "5.1"
|
220
220
|
}
|
@@ -158,6 +158,7 @@ declare module "buffer" {
|
|
158
158
|
* @param encoding The encoding of `string`. **Default:** `'utf8'`.
|
159
159
|
*/
|
160
160
|
from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer;
|
161
|
+
from(arrayOrString: WithImplicitCoercion<ArrayLike<number> | string>): Buffer;
|
161
162
|
/**
|
162
163
|
* Creates a new Buffer using the passed {data}
|
163
164
|
* @param values to create a new Buffer
|