@types/node 18.19.85 → 18.19.86
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 v18.19/README.md +1 -1
- node v18.19/fs.d.ts +6 -6
- node v18.19/package.json +2 -2
node v18.19/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/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue, 01 Apr 2025
|
|
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 v18.19/fs.d.ts
CHANGED
|
@@ -609,7 +609,7 @@ declare module "fs" {
|
|
|
609
609
|
* @since v0.8.6
|
|
610
610
|
* @param [len=0]
|
|
611
611
|
*/
|
|
612
|
-
export function truncate(path: PathLike, len: number | undefined
|
|
612
|
+
export function truncate(path: PathLike, len: number | undefined, callback: NoParamCallback): void;
|
|
613
613
|
/**
|
|
614
614
|
* Asynchronous truncate(2) - Truncate a file to a specified length.
|
|
615
615
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -621,7 +621,7 @@ declare module "fs" {
|
|
|
621
621
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
622
622
|
* @param len If not specified, defaults to `0`.
|
|
623
623
|
*/
|
|
624
|
-
function __promisify__(path: PathLike, len?: number
|
|
624
|
+
function __promisify__(path: PathLike, len?: number): Promise<void>;
|
|
625
625
|
}
|
|
626
626
|
/**
|
|
627
627
|
* Truncates the file. Returns `undefined`. A file descriptor can also be
|
|
@@ -632,7 +632,7 @@ declare module "fs" {
|
|
|
632
632
|
* @since v0.8.6
|
|
633
633
|
* @param [len=0]
|
|
634
634
|
*/
|
|
635
|
-
export function truncateSync(path: PathLike, len?: number
|
|
635
|
+
export function truncateSync(path: PathLike, len?: number): void;
|
|
636
636
|
/**
|
|
637
637
|
* Truncates the file descriptor. No arguments other than a possible exception are
|
|
638
638
|
* given to the completion callback.
|
|
@@ -676,7 +676,7 @@ declare module "fs" {
|
|
|
676
676
|
* @since v0.8.6
|
|
677
677
|
* @param [len=0]
|
|
678
678
|
*/
|
|
679
|
-
export function ftruncate(fd: number, len: number | undefined
|
|
679
|
+
export function ftruncate(fd: number, len: number | undefined, callback: NoParamCallback): void;
|
|
680
680
|
/**
|
|
681
681
|
* Asynchronous ftruncate(2) - Truncate a file to a specified length.
|
|
682
682
|
* @param fd A file descriptor.
|
|
@@ -688,7 +688,7 @@ declare module "fs" {
|
|
|
688
688
|
* @param fd A file descriptor.
|
|
689
689
|
* @param len If not specified, defaults to `0`.
|
|
690
690
|
*/
|
|
691
|
-
function __promisify__(fd: number, len?: number
|
|
691
|
+
function __promisify__(fd: number, len?: number): Promise<void>;
|
|
692
692
|
}
|
|
693
693
|
/**
|
|
694
694
|
* Truncates the file descriptor. Returns `undefined`.
|
|
@@ -698,7 +698,7 @@ declare module "fs" {
|
|
|
698
698
|
* @since v0.8.6
|
|
699
699
|
* @param [len=0]
|
|
700
700
|
*/
|
|
701
|
-
export function ftruncateSync(fd: number, len?: number
|
|
701
|
+
export function ftruncateSync(fd: number, len?: number): void;
|
|
702
702
|
/**
|
|
703
703
|
* Asynchronously changes owner and group of a file. No arguments other than a
|
|
704
704
|
* possible exception are given to the completion callback.
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.86",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
"undici-types": "~5.26.4"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "56c3936f9acbd8dc952c85df42d6f977d4062ccb735b5afd2bb6be788948c7ab",
|
|
224
224
|
"typeScriptVersion": "5.1"
|
|
225
225
|
}
|