@types/node 16.18.26 → 16.18.28
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/child_process.d.ts +4 -1
- node v16.18/fs.d.ts +8 -4
- node v16.18/package.json +2 -2
- node v16.18/ts4.8/child_process.d.ts +4 -1
- node v16.18/ts4.8/fs.d.ts +7 -4
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, 10 May 2023 08:02:56 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/child_process.d.ts
CHANGED
|
@@ -981,7 +981,10 @@ declare module 'child_process' {
|
|
|
981
981
|
interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
|
|
982
982
|
encoding: BufferEncoding;
|
|
983
983
|
}
|
|
984
|
-
type ExecFileException =
|
|
984
|
+
type ExecFileException =
|
|
985
|
+
& Omit<ExecException, 'code'>
|
|
986
|
+
& Omit<NodeJS.ErrnoException, 'code'>
|
|
987
|
+
& { code?: string | number | undefined | null };
|
|
985
988
|
/**
|
|
986
989
|
* The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
|
|
987
990
|
* executable `file` is spawned directly as a new process making it slightly more
|
node v16.18/fs.d.ts
CHANGED
|
@@ -2825,7 +2825,7 @@ declare module 'fs' {
|
|
|
2825
2825
|
bigint?: false | undefined;
|
|
2826
2826
|
})
|
|
2827
2827
|
| undefined,
|
|
2828
|
-
listener:
|
|
2828
|
+
listener: StatsListener
|
|
2829
2829
|
): StatWatcher;
|
|
2830
2830
|
export function watchFile(
|
|
2831
2831
|
filename: PathLike,
|
|
@@ -2834,13 +2834,14 @@ declare module 'fs' {
|
|
|
2834
2834
|
bigint: true;
|
|
2835
2835
|
})
|
|
2836
2836
|
| undefined,
|
|
2837
|
-
listener:
|
|
2837
|
+
listener: BigIntStatsListener
|
|
2838
2838
|
): StatWatcher;
|
|
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
|
-
export function watchFile(filename: PathLike, listener:
|
|
2844
|
+
export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher;
|
|
2844
2845
|
/**
|
|
2845
2846
|
* Stop watching for changes on `filename`. If `listener` is specified, only that
|
|
2846
2847
|
* particular listener is removed. Otherwise, _all_ listeners are removed,
|
|
@@ -2853,7 +2854,8 @@ declare module 'fs' {
|
|
|
2853
2854
|
* @since v0.1.31
|
|
2854
2855
|
* @param listener Optional, a listener previously attached using `fs.watchFile()`
|
|
2855
2856
|
*/
|
|
2856
|
-
export function unwatchFile(filename: PathLike, listener?:
|
|
2857
|
+
export function unwatchFile(filename: PathLike, listener?: StatsListener): void;
|
|
2858
|
+
export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
|
|
2857
2859
|
export interface WatchOptions extends Abortable {
|
|
2858
2860
|
encoding?: BufferEncoding | 'buffer' | undefined;
|
|
2859
2861
|
persistent?: boolean | undefined;
|
|
@@ -2861,6 +2863,8 @@ declare module 'fs' {
|
|
|
2861
2863
|
}
|
|
2862
2864
|
export type WatchEventType = 'rename' | 'change';
|
|
2863
2865
|
export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
|
|
2866
|
+
export type StatsListener = (curr: Stats, prev: Stats) => void;
|
|
2867
|
+
export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
|
|
2864
2868
|
/**
|
|
2865
2869
|
* Watch for changes on `filename`, where `filename` is either a file or a
|
|
2866
2870
|
* directory.
|
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.28",
|
|
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": "cdc7cb370f95a6ddd2d404d46596bdf5d48c85fb0de60d2509800a49e155d6a2",
|
|
231
231
|
"typeScriptVersion": "4.3"
|
|
232
232
|
}
|
|
@@ -981,7 +981,10 @@ declare module 'child_process' {
|
|
|
981
981
|
interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
|
|
982
982
|
encoding: BufferEncoding;
|
|
983
983
|
}
|
|
984
|
-
type ExecFileException =
|
|
984
|
+
type ExecFileException =
|
|
985
|
+
& Omit<ExecException, 'code'>
|
|
986
|
+
& Omit<NodeJS.ErrnoException, 'code'>
|
|
987
|
+
& { code?: string | number | undefined | null };
|
|
985
988
|
/**
|
|
986
989
|
* The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
|
|
987
990
|
* executable `file` is spawned directly as a new process making it slightly more
|
node v16.18/ts4.8/fs.d.ts
CHANGED
|
@@ -2825,7 +2825,7 @@ declare module 'fs' {
|
|
|
2825
2825
|
bigint?: false | undefined;
|
|
2826
2826
|
})
|
|
2827
2827
|
| undefined,
|
|
2828
|
-
listener:
|
|
2828
|
+
listener: StatsListener
|
|
2829
2829
|
): StatWatcher;
|
|
2830
2830
|
export function watchFile(
|
|
2831
2831
|
filename: PathLike,
|
|
@@ -2834,13 +2834,13 @@ declare module 'fs' {
|
|
|
2834
2834
|
bigint: true;
|
|
2835
2835
|
})
|
|
2836
2836
|
| undefined,
|
|
2837
|
-
listener:
|
|
2837
|
+
listener: BigIntStatsListener
|
|
2838
2838
|
): StatWatcher;
|
|
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
2842
|
*/
|
|
2843
|
-
export function watchFile(filename: PathLike, listener:
|
|
2843
|
+
export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher;
|
|
2844
2844
|
/**
|
|
2845
2845
|
* Stop watching for changes on `filename`. If `listener` is specified, only that
|
|
2846
2846
|
* particular listener is removed. Otherwise, _all_ listeners are removed,
|
|
@@ -2853,7 +2853,8 @@ declare module 'fs' {
|
|
|
2853
2853
|
* @since v0.1.31
|
|
2854
2854
|
* @param listener Optional, a listener previously attached using `fs.watchFile()`
|
|
2855
2855
|
*/
|
|
2856
|
-
export function unwatchFile(filename: PathLike, listener?:
|
|
2856
|
+
export function unwatchFile(filename: PathLike, listener?: StatsListener): void;
|
|
2857
|
+
export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
|
|
2857
2858
|
export interface WatchOptions extends Abortable {
|
|
2858
2859
|
encoding?: BufferEncoding | 'buffer' | undefined;
|
|
2859
2860
|
persistent?: boolean | undefined;
|
|
@@ -2861,6 +2862,8 @@ declare module 'fs' {
|
|
|
2861
2862
|
}
|
|
2862
2863
|
export type WatchEventType = 'rename' | 'change';
|
|
2863
2864
|
export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
|
|
2865
|
+
export type StatsListener = (curr: Stats, prev: Stats) => void;
|
|
2866
|
+
export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
|
|
2864
2867
|
/**
|
|
2865
2868
|
* Watch for changes on `filename`, where `filename` is either a file or a
|
|
2866
2869
|
* directory.
|