@types/node 14.17.24 → 14.17.28
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 v14.17/README.md +1 -1
- node v14.17/child_process.d.ts +1 -0
- node v14.17/dgram.d.ts +6 -6
- node v14.17/fs/promises.d.ts +1 -1
- node v14.17/fs.d.ts +4 -4
- node v14.17/package.json +2 -2
- node v14.17/util.d.ts +7 -1
node v14.17/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/v14.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 22 Oct 2021 07:01:25 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v14.17/child_process.d.ts
CHANGED
node v14.17/dgram.d.ts
CHANGED
|
@@ -37,11 +37,11 @@ declare module 'dgram' {
|
|
|
37
37
|
class Socket extends EventEmitter {
|
|
38
38
|
addMembership(multicastAddress: string, multicastInterface?: string): void;
|
|
39
39
|
address(): AddressInfo;
|
|
40
|
-
bind(port?: number, address?: string, callback?: () => void):
|
|
41
|
-
bind(port?: number, callback?: () => void):
|
|
42
|
-
bind(callback?: () => void):
|
|
43
|
-
bind(options: BindOptions, callback?: () => void):
|
|
44
|
-
close(callback?: () => void):
|
|
40
|
+
bind(port?: number, address?: string, callback?: () => void): this;
|
|
41
|
+
bind(port?: number, callback?: () => void): this;
|
|
42
|
+
bind(callback?: () => void): this;
|
|
43
|
+
bind(options: BindOptions, callback?: () => void): this;
|
|
44
|
+
close(callback?: () => void): this;
|
|
45
45
|
connect(port: number, address?: string, callback?: () => void): void;
|
|
46
46
|
connect(port: number, callback: () => void): void;
|
|
47
47
|
disconnect(): void;
|
|
@@ -59,7 +59,7 @@ declare module 'dgram' {
|
|
|
59
59
|
setBroadcast(flag: boolean): void;
|
|
60
60
|
setMulticastInterface(multicastInterface: string): void;
|
|
61
61
|
setMulticastLoopback(flag: boolean): boolean;
|
|
62
|
-
setMulticastTTL(ttl: number):
|
|
62
|
+
setMulticastTTL(ttl: number): number;
|
|
63
63
|
setRecvBufferSize(size: number): void;
|
|
64
64
|
setSendBufferSize(size: number): void;
|
|
65
65
|
setTTL(ttl: number): number;
|
node v14.17/fs/promises.d.ts
CHANGED
|
@@ -561,5 +561,5 @@ declare module 'fs/promises' {
|
|
|
561
561
|
*/
|
|
562
562
|
function readFile(path: PathLike | FileHandle, options?: BaseEncodingOptions & { flag?: OpenMode | undefined } | BufferEncoding | null): Promise<string | Buffer>;
|
|
563
563
|
|
|
564
|
-
function opendir(path:
|
|
564
|
+
function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
565
565
|
}
|
node v14.17/fs.d.ts
CHANGED
|
@@ -2241,13 +2241,13 @@ declare module 'fs' {
|
|
|
2241
2241
|
bufferSize?: number | undefined;
|
|
2242
2242
|
}
|
|
2243
2243
|
|
|
2244
|
-
export function opendirSync(path:
|
|
2244
|
+
export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
|
|
2245
2245
|
|
|
2246
|
-
export function opendir(path:
|
|
2247
|
-
export function opendir(path:
|
|
2246
|
+
export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
2247
|
+
export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
2248
2248
|
|
|
2249
2249
|
export namespace opendir {
|
|
2250
|
-
function __promisify__(path:
|
|
2250
|
+
function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
2251
2251
|
}
|
|
2252
2252
|
|
|
2253
2253
|
export interface BigIntStats extends StatsBase<bigint> {
|
node v14.17/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.17.
|
|
3
|
+
"version": "14.17.28",
|
|
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": "1370ac9e4517af76d30d86ea78d7f6d8c6f1ae04d6b7b26577e6612ed816b2eb",
|
|
224
224
|
"typeScriptVersion": "3.7"
|
|
225
225
|
}
|
node v14.17/util.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare module 'util' {
|
|
|
7
7
|
}
|
|
8
8
|
function format(format?: any, ...param: any[]): string;
|
|
9
9
|
function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
|
|
10
|
+
function getSystemErrorName(err: number): string;
|
|
10
11
|
/** @deprecated since v0.11.3 - use a third party module instead. */
|
|
11
12
|
function log(string: string): void;
|
|
12
13
|
function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
|
|
@@ -32,7 +33,12 @@ declare module 'util' {
|
|
|
32
33
|
/** @deprecated since v4.0.0 - use `util.types.isNativeError()` instead. */
|
|
33
34
|
function isError(object: any): object is Error;
|
|
34
35
|
function inherits(constructor: any, superConstructor: any): void;
|
|
35
|
-
|
|
36
|
+
type DebugLoggerFunction = (msg: string, ...param: any[]) => void;
|
|
37
|
+
interface DebugLogger extends DebugLoggerFunction {
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
}
|
|
40
|
+
function debuglog(key: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
|
41
|
+
const debug: typeof debuglog;
|
|
36
42
|
/** @deprecated since v4.0.0 - use `typeof value === 'boolean'` instead. */
|
|
37
43
|
function isBoolean(object: any): object is boolean;
|
|
38
44
|
/** @deprecated since v4.0.0 - use `Buffer.isBuffer()` instead. */
|