@types/node 12.20.53 → 12.20.54

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 v12.20/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/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 31 May 2022 18:31:36 GMT
11
+ * Last updated: Tue, 31 May 2022 20:31:35 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v12.20/fs.d.ts CHANGED
@@ -1089,15 +1089,23 @@ declare module 'fs' {
1089
1089
  /**
1090
1090
  * Asynchronous open(2) - open and possibly create a file.
1091
1091
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1092
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`.
1092
+ * @param [flags='r'] See `support of file system `flags``.
1093
+ * @param [mode] A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`.
1094
+ */
1095
+ function open(path: PathLike, flags: string | number | undefined, mode: string | number | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1096
+
1097
+ /**
1098
+ * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
1099
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1100
+ * @param [flags='r'] See `support of file system `flags``.
1093
1101
  */
1094
- function open(path: PathLike, flags: string | number, mode: string | number | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1102
+ function open(path: PathLike, flags: string | number | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1095
1103
 
1096
1104
  /**
1097
1105
  * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
1098
1106
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1099
1107
  */
1100
- function open(path: PathLike, flags: string | number, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1108
+ function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1101
1109
 
1102
1110
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1103
1111
  namespace open {
@@ -2179,10 +2187,11 @@ declare module 'fs' {
2179
2187
  /**
2180
2188
  * Asynchronous open(2) - open and possibly create a file.
2181
2189
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2182
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not
2190
+ * @param [flags='r'] See `support of file system `flags``.
2191
+ * @param [mode] A file mode. If a string is passed, it is parsed as an octal integer. If not
2183
2192
  * supplied, defaults to `0o666`.
2184
2193
  */
2185
- function open(path: PathLike, flags: string | number, mode?: string | number): Promise<FileHandle>;
2194
+ function open(path: PathLike, flags?: string | number, mode?: string | number): Promise<FileHandle>;
2186
2195
 
2187
2196
  /**
2188
2197
  * Asynchronously reads data from the file referenced by the supplied `FileHandle`.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.20.53",
3
+ "version": "12.20.54",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -190,6 +190,6 @@
190
190
  },
191
191
  "scripts": {},
192
192
  "dependencies": {},
193
- "typesPublisherContentHash": "26bf08ddda0460b1b63e88723de8002d6b235f8548d9ccd5f19fb507fcd96287",
193
+ "typesPublisherContentHash": "a1caa6442418f5145ca1c769707159412c35aa78705278349a4bbdf70f17013b",
194
194
  "typeScriptVersion": "3.9"
195
195
  }