@types/node 16.18.27 → 16.18.29

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 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: Mon, 08 May 2023 20:33:00 GMT
11
+ * Last updated: Thu, 11 May 2023 20:02:59 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -350,6 +350,7 @@ declare module 'dns/promises' {
350
350
  resolve4: typeof resolve4;
351
351
  resolve6: typeof resolve6;
352
352
  resolveAny: typeof resolveAny;
353
+ resolveCaa: typeof resolveCaa;
353
354
  resolveCname: typeof resolveCname;
354
355
  resolveMx: typeof resolveMx;
355
356
  resolveNaptr: typeof resolveNaptr;
node v16.18/dns.d.ts CHANGED
@@ -620,6 +620,7 @@ declare module 'dns' {
620
620
  resolve4: typeof resolve4;
621
621
  resolve6: typeof resolve6;
622
622
  resolveAny: typeof resolveAny;
623
+ resolveCaa: typeof resolveCaa;
623
624
  resolveCname: typeof resolveCname;
624
625
  resolveMx: typeof resolveMx;
625
626
  resolveNaptr: typeof resolveNaptr;
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: (curr: Stats, prev: Stats) => void
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: (curr: BigIntStats, prev: BigIntStats) => void
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: (curr: Stats, prev: Stats) => void): StatWatcher;
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?: (curr: Stats, prev: Stats) => void): void;
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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.27",
3
+ "version": "16.18.29",
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": "116c2708e270b9be1139f6b6b524abc052c0045fb7a4887062b35de173e2ed81",
230
+ "typesPublisherContentHash": "c7bd890f4c6f60099c62692e59e8c23ad1600f767ac1fbf873de903ee2326dfc",
231
231
  "typeScriptVersion": "4.3"
232
232
  }
@@ -2825,7 +2825,7 @@ declare module 'fs' {
2825
2825
  bigint?: false | undefined;
2826
2826
  })
2827
2827
  | undefined,
2828
- listener: (curr: Stats, prev: Stats) => void
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: (curr: BigIntStats, prev: BigIntStats) => void
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: (curr: Stats, prev: Stats) => void): StatWatcher;
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?: (curr: Stats, prev: Stats) => void): void;
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.