@types/node 18.16.15 → 18.16.16

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.16/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/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 25 May 2023 20:34:28 GMT
11
+ * Last updated: Fri, 26 May 2023 20:32:56 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
@@ -44,7 +44,7 @@ declare module 'fs/promises' {
44
44
 
45
45
  interface FileChangeInfo<T extends string | Buffer> {
46
46
  eventType: WatchEventType;
47
- filename: T;
47
+ filename: T | null;
48
48
  }
49
49
  interface FlagAndOpenMode {
50
50
  mode?: Mode | undefined;
node v18.16/fs.d.ts CHANGED
@@ -3036,7 +3036,7 @@ declare module 'fs' {
3036
3036
  recursive?: boolean | undefined;
3037
3037
  }
3038
3038
  export type WatchEventType = 'rename' | 'change';
3039
- export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
3039
+ export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
3040
3040
  export type StatsListener = (curr: Stats, prev: Stats) => void;
3041
3041
  export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
3042
3042
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.16.15",
3
+ "version": "18.16.16",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -232,6 +232,6 @@
232
232
  },
233
233
  "scripts": {},
234
234
  "dependencies": {},
235
- "typesPublisherContentHash": "a20ed2398880e4e7e024254f1b95f0eaddfef77e66eea9a67db62766d4ebe4e9",
235
+ "typesPublisherContentHash": "0199db2afa47760c36d997475dcc7631ce080a63e5b175514689b32229cfbe26",
236
236
  "typeScriptVersion": "4.3"
237
237
  }
@@ -41,7 +41,7 @@ declare module 'fs/promises' {
41
41
 
42
42
  interface FileChangeInfo<T extends string | Buffer> {
43
43
  eventType: WatchEventType;
44
- filename: T;
44
+ filename: T | null;
45
45
  }
46
46
  interface FlagAndOpenMode {
47
47
  mode?: Mode | undefined;
@@ -2935,7 +2935,7 @@ declare module 'fs' {
2935
2935
  recursive?: boolean | undefined;
2936
2936
  }
2937
2937
  export type WatchEventType = 'rename' | 'change';
2938
- export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
2938
+ export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
2939
2939
  export type StatsListener = (curr: Stats, prev: Stats) => void;
2940
2940
  export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
2941
2941
  /**