@types/node 20.2.3 → 20.2.5

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sun, 21 May 2023 22:02:55 GMT
11
+ * Last updated: Fri, 26 May 2023 20:32:54 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/crypto.d.ts CHANGED
@@ -1282,7 +1282,7 @@ declare module 'crypto' {
1282
1282
  type DSAEncoding = 'der' | 'ieee-p1363';
1283
1283
  interface SigningOptions {
1284
1284
  /**
1285
- * @See crypto.constants.RSA_PKCS1_PADDING
1285
+ * @see crypto.constants.RSA_PKCS1_PADDING
1286
1286
  */
1287
1287
  padding?: number | undefined;
1288
1288
  saltLength?: number | undefined;
node/fs/promises.d.ts CHANGED
@@ -43,7 +43,7 @@ declare module 'fs/promises' {
43
43
  import { Interface as ReadlineInterface } from 'node:readline';
44
44
  interface FileChangeInfo<T extends string | Buffer> {
45
45
  eventType: WatchEventType;
46
- filename: T;
46
+ filename: T | null;
47
47
  }
48
48
  interface FlagAndOpenMode {
49
49
  mode?: Mode | undefined;
node/fs.d.ts CHANGED
@@ -3088,7 +3088,7 @@ declare module 'fs' {
3088
3088
  recursive?: boolean | undefined;
3089
3089
  }
3090
3090
  export type WatchEventType = 'rename' | 'change';
3091
- export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
3091
+ export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
3092
3092
  export type StatsListener = (curr: Stats, prev: Stats) => void;
3093
3093
  export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
3094
3094
  /**
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.2.3",
3
+ "version": "20.2.5",
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": "a89013fd9f5c22705a8c372d5c9bfd1867dbdf836669c5498a9eda0af24608aa",
235
+ "typesPublisherContentHash": "b81d0dcff66197ea155602788c59585260565ab1e58c75cb77dbe9e39d582e17",
236
236
  "typeScriptVersion": "4.3"
237
237
  }
node/ts4.8/crypto.d.ts CHANGED
@@ -1282,7 +1282,7 @@ declare module 'crypto' {
1282
1282
  type DSAEncoding = 'der' | 'ieee-p1363';
1283
1283
  interface SigningOptions {
1284
1284
  /**
1285
- * @See crypto.constants.RSA_PKCS1_PADDING
1285
+ * @see crypto.constants.RSA_PKCS1_PADDING
1286
1286
  */
1287
1287
  padding?: number | undefined;
1288
1288
  saltLength?: number | undefined;
@@ -43,7 +43,7 @@ declare module 'fs/promises' {
43
43
  import { Interface as ReadlineInterface } from 'node:readline';
44
44
  interface FileChangeInfo<T extends string | Buffer> {
45
45
  eventType: WatchEventType;
46
- filename: T;
46
+ filename: T | null;
47
47
  }
48
48
  interface FlagAndOpenMode {
49
49
  mode?: Mode | undefined;
node/ts4.8/fs.d.ts CHANGED
@@ -3088,7 +3088,7 @@ declare module 'fs' {
3088
3088
  recursive?: boolean | undefined;
3089
3089
  }
3090
3090
  export type WatchEventType = 'rename' | 'change';
3091
- export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
3091
+ export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
3092
3092
  export type StatsListener = (curr: Stats, prev: Stats) => void;
3093
3093
  export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
3094
3094
  /**