@types/node 16.18.42 → 16.18.44
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 v16.18/README.md +1 -1
- node v16.18/fs.d.ts +17 -5
- node v16.18/inspector.d.ts +1 -1
- node v16.18/package.json +2 -2
- node v16.18/ts4.8/fs.d.ts +18 -5
- node v16.18/ts4.8/inspector.d.ts +1 -1
node v16.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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 23 Aug 2023 21:03:08 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.18/fs.d.ts
CHANGED
|
@@ -3397,15 +3397,27 @@ declare module 'fs' {
|
|
|
3397
3397
|
fd?: number | promises.FileHandle | undefined;
|
|
3398
3398
|
mode?: number | undefined;
|
|
3399
3399
|
autoClose?: boolean | undefined;
|
|
3400
|
-
/**
|
|
3401
|
-
* @default false
|
|
3402
|
-
*/
|
|
3403
3400
|
emitClose?: boolean | undefined;
|
|
3404
3401
|
start?: number | undefined;
|
|
3405
|
-
|
|
3402
|
+
}
|
|
3403
|
+
interface FSImplementation {
|
|
3404
|
+
open?: (...args: any[]) => any;
|
|
3405
|
+
close?: (...args: any[]) => any;
|
|
3406
|
+
}
|
|
3407
|
+
interface CreateReadStreamFSImplementation extends FSImplementation {
|
|
3408
|
+
read: (...args: any[]) => any;
|
|
3409
|
+
}
|
|
3410
|
+
interface CreateWriteStreamFSImplementation extends FSImplementation {
|
|
3411
|
+
write: (...args: any[]) => any;
|
|
3412
|
+
writev?: (...args: any[]) => any;
|
|
3406
3413
|
}
|
|
3407
3414
|
interface ReadStreamOptions extends StreamOptions {
|
|
3415
|
+
fs?: CreateReadStreamFSImplementation | null | undefined;
|
|
3408
3416
|
end?: number | undefined;
|
|
3417
|
+
highWaterMark?: number | undefined;
|
|
3418
|
+
}
|
|
3419
|
+
interface WriteStreamOptions extends StreamOptions {
|
|
3420
|
+
fs?: CreateWriteStreamFSImplementation | null | undefined;
|
|
3409
3421
|
}
|
|
3410
3422
|
/**
|
|
3411
3423
|
* Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
|
|
@@ -3499,7 +3511,7 @@ declare module 'fs' {
|
|
|
3499
3511
|
* If `options` is a string, then it specifies the encoding.
|
|
3500
3512
|
* @since v0.1.31
|
|
3501
3513
|
*/
|
|
3502
|
-
export function createWriteStream(path: PathLike, options?: BufferEncoding |
|
|
3514
|
+
export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream;
|
|
3503
3515
|
/**
|
|
3504
3516
|
* Forces all currently queued I/O operations associated with the file to the
|
|
3505
3517
|
* operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other
|
node v16.18/inspector.d.ts
CHANGED
node v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.44",
|
|
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": "
|
|
230
|
+
"typesPublisherContentHash": "1789de9e33b185d930e4be32ff03fb9648a61edce6d3a8a422b1b9fb67c23b6c",
|
|
231
231
|
"typeScriptVersion": "4.3"
|
|
232
232
|
}
|
node v16.18/ts4.8/fs.d.ts
CHANGED
|
@@ -2839,6 +2839,7 @@ declare module 'fs' {
|
|
|
2839
2839
|
/**
|
|
2840
2840
|
* Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
|
|
2841
2841
|
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
2842
|
+
* @param listener The callback listener will be called each time the file is accessed.
|
|
2842
2843
|
*/
|
|
2843
2844
|
export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher;
|
|
2844
2845
|
/**
|
|
@@ -3396,15 +3397,27 @@ declare module 'fs' {
|
|
|
3396
3397
|
fd?: number | promises.FileHandle | undefined;
|
|
3397
3398
|
mode?: number | undefined;
|
|
3398
3399
|
autoClose?: boolean | undefined;
|
|
3399
|
-
/**
|
|
3400
|
-
* @default false
|
|
3401
|
-
*/
|
|
3402
3400
|
emitClose?: boolean | undefined;
|
|
3403
3401
|
start?: number | undefined;
|
|
3404
|
-
|
|
3402
|
+
}
|
|
3403
|
+
interface FSImplementation {
|
|
3404
|
+
open?: (...args: any[]) => any;
|
|
3405
|
+
close?: (...args: any[]) => any;
|
|
3406
|
+
}
|
|
3407
|
+
interface CreateReadStreamFSImplementation extends FSImplementation {
|
|
3408
|
+
read: (...args: any[]) => any;
|
|
3409
|
+
}
|
|
3410
|
+
interface CreateWriteStreamFSImplementation extends FSImplementation {
|
|
3411
|
+
write: (...args: any[]) => any;
|
|
3412
|
+
writev?: (...args: any[]) => any;
|
|
3405
3413
|
}
|
|
3406
3414
|
interface ReadStreamOptions extends StreamOptions {
|
|
3415
|
+
fs?: CreateReadStreamFSImplementation | null | undefined;
|
|
3407
3416
|
end?: number | undefined;
|
|
3417
|
+
highWaterMark?: number | undefined;
|
|
3418
|
+
}
|
|
3419
|
+
interface WriteStreamOptions extends StreamOptions {
|
|
3420
|
+
fs?: CreateWriteStreamFSImplementation | null | undefined;
|
|
3408
3421
|
}
|
|
3409
3422
|
/**
|
|
3410
3423
|
* Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
|
|
@@ -3498,7 +3511,7 @@ declare module 'fs' {
|
|
|
3498
3511
|
* If `options` is a string, then it specifies the encoding.
|
|
3499
3512
|
* @since v0.1.31
|
|
3500
3513
|
*/
|
|
3501
|
-
export function createWriteStream(path: PathLike, options?: BufferEncoding |
|
|
3514
|
+
export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream;
|
|
3502
3515
|
/**
|
|
3503
3516
|
* Forces all currently queued I/O operations associated with the file to the
|
|
3504
3517
|
* operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other
|
node v16.18/ts4.8/inspector.d.ts
CHANGED