@types/node 20.2.4 → 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 +1 -1
- node/fs/promises.d.ts +1 -1
- node/fs.d.ts +1 -1
- node/package.json +2 -2
- node/ts4.8/fs/promises.d.ts +1 -1
- node/ts4.8/fs.d.ts +1 -1
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:
|
|
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/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
|
+
"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": "
|
|
235
|
+
"typesPublisherContentHash": "b81d0dcff66197ea155602788c59585260565ab1e58c75cb77dbe9e39d582e17",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
node/ts4.8/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/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
|
/**
|