@types/node 12.20.52 → 12.20.55
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 +1 -1
- node v12.20/fs.d.ts +14 -5
- node v12.20/globals.d.ts +4 -4
- node v12.20/package.json +2 -2
- node v12.20/timers.d.ts +2 -2
- node v12.20/tls.d.ts +1 -1
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:
|
|
11
|
+
* Last updated: Tue, 07 Jun 2022 19:01:37 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
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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`.
|
node v12.20/globals.d.ts
CHANGED
|
@@ -179,9 +179,9 @@ declare namespace setTimeout {
|
|
|
179
179
|
function __promisify__(ms: number): Promise<void>;
|
|
180
180
|
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
|
181
181
|
}
|
|
182
|
-
declare function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
|
|
182
|
+
declare function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
|
|
183
183
|
declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
184
|
-
declare function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
|
|
184
|
+
declare function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
|
|
185
185
|
declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
|
186
186
|
declare namespace setImmediate {
|
|
187
187
|
function __promisify__(): Promise<void>;
|
|
@@ -1249,8 +1249,8 @@ declare namespace NodeJS {
|
|
|
1249
1249
|
WeakMap: WeakMapConstructor;
|
|
1250
1250
|
WeakSet: WeakSetConstructor;
|
|
1251
1251
|
clearImmediate: (immediateId: Immediate) => void;
|
|
1252
|
-
clearInterval: (intervalId: Timeout) => void;
|
|
1253
|
-
clearTimeout: (timeoutId: Timeout) => void;
|
|
1252
|
+
clearInterval: (intervalId: Timeout | string | number) => void;
|
|
1253
|
+
clearTimeout: (timeoutId: Timeout | string | number) => void;
|
|
1254
1254
|
console: typeof console;
|
|
1255
1255
|
decodeURI: typeof decodeURI;
|
|
1256
1256
|
decodeURIComponent: typeof decodeURIComponent;
|
node v12.20/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.55",
|
|
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": "
|
|
193
|
+
"typesPublisherContentHash": "3d29774cbf5180f3bd5b1bd954e268a18a74c90d34acff15c56308ec98960bec",
|
|
194
194
|
"typeScriptVersion": "3.9"
|
|
195
195
|
}
|
node v12.20/timers.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ declare module 'timers' {
|
|
|
4
4
|
function __promisify__(ms: number): Promise<void>;
|
|
5
5
|
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
|
6
6
|
}
|
|
7
|
-
function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
|
|
7
|
+
function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
|
|
8
8
|
function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
9
|
-
function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
|
|
9
|
+
function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
|
|
10
10
|
function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
|
11
11
|
namespace setImmediate {
|
|
12
12
|
function __promisify__(): Promise<void>;
|
node v12.20/tls.d.ts
CHANGED