@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 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: Wed, 13 Oct 2021 17:31:22 GMT
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
 
@@ -264,6 +264,7 @@ declare module 'child_process' {
264
264
 
265
265
  interface ExecOptions extends CommonOptions {
266
266
  shell?: string | undefined;
267
+ signal?: AbortSignal | undefined;
267
268
  maxBuffer?: number | undefined;
268
269
  killSignal?: NodeJS.Signals | number | undefined;
269
270
  }
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): void;
41
- bind(port?: number, callback?: () => void): void;
42
- bind(callback?: () => void): void;
43
- bind(options: BindOptions, callback?: () => void): void;
44
- close(callback?: () => void): 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): void;
62
+ setMulticastTTL(ttl: number): number;
63
63
  setRecvBufferSize(size: number): void;
64
64
  setSendBufferSize(size: number): void;
65
65
  setTTL(ttl: number): number;
@@ -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: string, options?: OpenDirOptions): Promise<Dir>;
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: string, options?: OpenDirOptions): Dir;
2244
+ export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
2245
2245
 
2246
- export function opendir(path: string, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2247
- export function opendir(path: string, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
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: string, options?: OpenDirOptions): Promise<Dir>;
2250
+ function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
2251
2251
  }
2252
2252
 
2253
2253
  export interface BigIntStats extends StatsBase<bigint> {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.17.24",
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": "47bcbed63d97606c26ac430985d0ab44c309115f0a97c533590837b79291f534",
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
- function debuglog(key: string): (msg: string, ...param: any[]) => void;
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. */