@types/node 14.18.19 → 14.18.20
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 v14.18/README.md +1 -1
- node v14.18/fs/promises.d.ts +3 -2
- node v14.18/fs.d.ts +11 -3
- node v14.18/package.json +2 -2
node v14.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/v14.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue, 31 May 2022
|
|
11
|
+
* Last updated: Tue, 31 May 2022 20:31:35 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v14.18/fs/promises.d.ts
CHANGED
|
@@ -184,10 +184,11 @@ declare module 'fs/promises' {
|
|
|
184
184
|
/**
|
|
185
185
|
* Asynchronous open(2) - open and possibly create a file.
|
|
186
186
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
187
|
-
* @param
|
|
187
|
+
* @param [flags='r'] See `support of file system `flags``.
|
|
188
|
+
* @param [mode] A file mode. If a string is passed, it is parsed as an octal integer. If not
|
|
188
189
|
* supplied, defaults to `0o666`.
|
|
189
190
|
*/
|
|
190
|
-
function open(path: PathLike, flags
|
|
191
|
+
function open(path: PathLike, flags?: string | number, mode?: string | number): Promise<FileHandle>;
|
|
191
192
|
|
|
192
193
|
/**
|
|
193
194
|
* Asynchronously reads data from the file referenced by the supplied `FileHandle`.
|
node v14.18/fs.d.ts
CHANGED
|
@@ -1264,15 +1264,23 @@ declare module 'fs' {
|
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Asynchronous open(2) - open and possibly create a file.
|
|
1266
1266
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1267
|
-
* @param
|
|
1267
|
+
* @param [flags='r'] See `support of file system `flags``.
|
|
1268
|
+
* @param [mode=0o666]
|
|
1269
|
+
*/
|
|
1270
|
+
export function open(path: PathLike, flags: OpenMode | undefined, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
1274
|
+
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1275
|
+
* @param [flags='r'] See `support of file system `flags``.
|
|
1268
1276
|
*/
|
|
1269
|
-
export function open(path: PathLike, flags: OpenMode
|
|
1277
|
+
export function open(path: PathLike, flags: OpenMode | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
1270
1278
|
|
|
1271
1279
|
/**
|
|
1272
1280
|
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
1273
1281
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
1274
1282
|
*/
|
|
1275
|
-
export function open(path: PathLike,
|
|
1283
|
+
export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
1276
1284
|
|
|
1277
1285
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
1278
1286
|
export namespace open {
|
node v14.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.18.
|
|
3
|
+
"version": "14.18.20",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "903c2692255fd727392fe2837cbb6991d69e3f79a1f7a90fde2e8ca46e2d6b2b",
|
|
224
224
|
"typeScriptVersion": "3.9"
|
|
225
225
|
}
|