@types/node 16.18.32 → 16.18.34

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: Sun, 21 May 2023 21:02:55 GMT
11
+ * Last updated: Fri, 26 May 2023 20:32:57 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/assert.d.ts CHANGED
@@ -82,7 +82,7 @@ declare module 'assert' {
82
82
  * ```
83
83
  *
84
84
  * @since v18.8.0, v16.18.0
85
- * @params fn
85
+ * @param fn
86
86
  * @returns An Array with the calls to a tracked function.
87
87
  */
88
88
  getCalls(fn: Function): CallTrackerCall[];
node v16.18/crypto.d.ts CHANGED
@@ -1262,7 +1262,7 @@ declare module 'crypto' {
1262
1262
  type DSAEncoding = 'der' | 'ieee-p1363';
1263
1263
  interface SigningOptions {
1264
1264
  /**
1265
- * @See crypto.constants.RSA_PKCS1_PADDING
1265
+ * @see crypto.constants.RSA_PKCS1_PADDING
1266
1266
  */
1267
1267
  padding?: number | undefined;
1268
1268
  saltLength?: number | undefined;
@@ -37,7 +37,7 @@ declare module 'fs/promises' {
37
37
  } from 'node:fs';
38
38
  interface FileChangeInfo<T extends string | Buffer> {
39
39
  eventType: WatchEventType;
40
- filename: T;
40
+ filename: T | null;
41
41
  }
42
42
  interface FlagAndOpenMode {
43
43
  mode?: Mode | undefined;
node v16.18/fs.d.ts CHANGED
@@ -2862,7 +2862,7 @@ declare module 'fs' {
2862
2862
  recursive?: boolean | undefined;
2863
2863
  }
2864
2864
  export type WatchEventType = 'rename' | 'change';
2865
- export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
2865
+ export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
2866
2866
  export type StatsListener = (curr: Stats, prev: Stats) => void;
2867
2867
  export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
2868
2868
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.32",
3
+ "version": "16.18.34",
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": "66470f9fe34fa073032c79661b47b9b16b4ed00634052f0090e753c5f9ba42b4",
230
+ "typesPublisherContentHash": "5ca389d9f40029047c9a2883ee4e5f82d5b4fcde4cf91103eb61529217493086",
231
231
  "typeScriptVersion": "4.3"
232
232
  }
@@ -82,7 +82,7 @@ declare module 'assert' {
82
82
  * ```
83
83
  *
84
84
  * @since v18.8.0, v16.18.0
85
- * @params fn
85
+ * @param fn
86
86
  * @returns An Array with the calls to a tracked function.
87
87
  */
88
88
  getCalls(fn: Function): CallTrackerCall[];
@@ -1260,7 +1260,7 @@ declare module 'crypto' {
1260
1260
  type DSAEncoding = 'der' | 'ieee-p1363';
1261
1261
  interface SigningOptions {
1262
1262
  /**
1263
- * @See crypto.constants.RSA_PKCS1_PADDING
1263
+ * @see crypto.constants.RSA_PKCS1_PADDING
1264
1264
  */
1265
1265
  padding?: number | undefined;
1266
1266
  saltLength?: number | undefined;
@@ -37,7 +37,7 @@ declare module 'fs/promises' {
37
37
  } from 'node:fs';
38
38
  interface FileChangeInfo<T extends string | Buffer> {
39
39
  eventType: WatchEventType;
40
- filename: T;
40
+ filename: T | null;
41
41
  }
42
42
  interface FlagAndOpenMode {
43
43
  mode?: Mode | undefined;
@@ -2861,7 +2861,7 @@ declare module 'fs' {
2861
2861
  recursive?: boolean | undefined;
2862
2862
  }
2863
2863
  export type WatchEventType = 'rename' | 'change';
2864
- export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
2864
+ export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
2865
2865
  export type StatsListener = (curr: Stats, prev: Stats) => void;
2866
2866
  export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
2867
2867
  /**