@types/node 17.0.37 → 17.0.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/README.md +1 -1
- node/fs/promises.d.ts +1 -1
- node/fs.d.ts +9 -2
- node/package.json +2 -2
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: Tue, 31 May 2022
|
|
11
|
+
* Last updated: Tue, 31 May 2022 20:31:33 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
|
@@ -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
|
|
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/fs.d.ts
CHANGED
|
@@ -1998,12 +1998,19 @@ declare module 'fs' {
|
|
|
1998
1998
|
* @param [flags='r'] See `support of file system `flags``.
|
|
1999
1999
|
* @param [mode=0o666]
|
|
2000
2000
|
*/
|
|
2001
|
-
export function open(path: PathLike, flags: OpenMode, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2001
|
+
export function open(path: PathLike, flags: OpenMode | undefined, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2002
|
+
/**
|
|
2003
|
+
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
2004
|
+
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2005
|
+
* @param [flags='r'] See `support of file system `flags``.
|
|
2006
|
+
*/
|
|
2007
|
+
export function open(path: PathLike, flags: OpenMode | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2002
2008
|
/**
|
|
2003
2009
|
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
2004
2010
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2005
2011
|
*/
|
|
2006
|
-
export function open(path: PathLike,
|
|
2012
|
+
export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2013
|
+
|
|
2007
2014
|
export namespace open {
|
|
2008
2015
|
/**
|
|
2009
2016
|
* Asynchronous open(2) - open and possibly create a file.
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.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": "
|
|
223
|
+
"typesPublisherContentHash": "e6da8ea46b47fb950c446ddfac1a5c4914096b3d7b6d11464340c48287032b98",
|
|
224
224
|
"typeScriptVersion": "3.9"
|
|
225
225
|
}
|