@types/node 16.11.35 → 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 +1 -1
- node v16.11/fs/promises.d.ts +1 -1
- node v16.11/fs.d.ts +8 -2
- node v16.11/package.json +2 -2
- node v16.11/stream.d.ts +13 -0
- node v16.11/timers.d.ts +2 -2
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:
|
|
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
|
|
node v16.11/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 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,
|
|
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.
|
node v16.11/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.11.
|
|
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": "
|
|
223
|
+
"typesPublisherContentHash": "673df50b346518019faa5142a6fe475ef1555b73885c3847da738e1ae6d942ab",
|
|
224
224
|
"typeScriptVersion": "3.9"
|
|
225
225
|
}
|
node v16.11/stream.d.ts
CHANGED
|
@@ -1238,6 +1238,19 @@ declare module 'stream' {
|
|
|
1238
1238
|
ref(): void;
|
|
1239
1239
|
unref(): void;
|
|
1240
1240
|
}
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Returns whether the stream has encountered an error.
|
|
1244
|
+
* @since v16.14.0
|
|
1245
|
+
*/
|
|
1246
|
+
function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Returns whether the stream is readable.
|
|
1250
|
+
* @since v16.14.0
|
|
1251
|
+
*/
|
|
1252
|
+
function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
1253
|
+
|
|
1241
1254
|
const promises: typeof streamPromises;
|
|
1242
1255
|
const consumers: typeof streamConsumers;
|
|
1243
1256
|
}
|
node v16.11/timers.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare module 'timers' {
|
|
|
69
69
|
namespace setTimeout {
|
|
70
70
|
const __promisify__: typeof setTimeoutPromise;
|
|
71
71
|
}
|
|
72
|
-
function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
|
|
72
|
+
function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
|
|
73
73
|
function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer;
|
|
74
74
|
// util.promisify no rest args compability
|
|
75
75
|
// tslint:disable-next-line void-return
|
|
@@ -77,7 +77,7 @@ declare module 'timers' {
|
|
|
77
77
|
namespace setInterval {
|
|
78
78
|
const __promisify__: typeof setIntervalPromise;
|
|
79
79
|
}
|
|
80
|
-
function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
|
|
80
|
+
function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
|
|
81
81
|
function setImmediate<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate;
|
|
82
82
|
// util.promisify no rest args compability
|
|
83
83
|
// tslint:disable-next-line void-return
|