@types/node 16.11.37 → 16.11.38

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.11/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: Tue, 31 May 2022 18:31:35 GMT
11
+ * Last updated: Tue, 31 May 2022 20:31:34 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -487,7 +487,7 @@ declare module 'fs/promises' {
487
487
  * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created.
488
488
  * @return Fulfills with a {FileHandle} object.
489
489
  */
490
- function open(path: PathLike, flags: string | number, mode?: Mode): Promise<FileHandle>;
490
+ function open(path: PathLike, flags?: string | number, mode?: Mode): Promise<FileHandle>;
491
491
  /**
492
492
  * Renames `oldPath` to `newPath`.
493
493
  * @since v10.0.0
node v16.11/fs.d.ts CHANGED
@@ -1993,12 +1993,18 @@ declare module 'fs' {
1993
1993
  * @param [flags='r'] See `support of file system `flags``.
1994
1994
  * @param [mode=0o666]
1995
1995
  */
1996
- export function open(path: PathLike, flags: OpenMode, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1996
+ export function open(path: PathLike, flags: OpenMode | undefined, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1997
+ /**
1998
+ * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
1999
+ * @param [flags='r'] See `support of file system `flags``.
2000
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2001
+ */
2002
+ export function open(path: PathLike, flags: OpenMode | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1997
2003
  /**
1998
2004
  * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
1999
2005
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2000
2006
  */
2001
- export function open(path: PathLike, flags: OpenMode, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
2007
+ export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
2002
2008
  export namespace open {
2003
2009
  /**
2004
2010
  * Asynchronous open(2) - open and possibly create a file.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.37",
3
+ "version": "16.11.38",
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": "19e4641fe1f16d7c67aba7c49713ea1432f825a66f1df0d44f628119d9b21b89",
223
+ "typesPublisherContentHash": "673df50b346518019faa5142a6fe475ef1555b73885c3847da738e1ae6d942ab",
224
224
  "typeScriptVersion": "3.9"
225
225
  }