@types/node 14.0.5 → 14.0.9

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 CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://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: Thu, 21 May 2020 20:08:41 GMT
11
+ * Last updated: Mon, 01 Jun 2020 23:40:33 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node/child_process.d.ts CHANGED
@@ -436,13 +436,13 @@ declare module "child_process" {
436
436
  input?: string | NodeJS.ArrayBufferView;
437
437
  killSignal?: NodeJS.Signals | number;
438
438
  maxBuffer?: number;
439
- encoding?: BufferEncoding;
439
+ encoding?: BufferEncoding | 'buffer' | null;
440
440
  }
441
441
  interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
442
442
  encoding: BufferEncoding;
443
443
  }
444
444
  interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
445
- encoding: BufferEncoding; // specify `null`.
445
+ encoding?: 'buffer' | null;
446
446
  }
447
447
  interface SpawnSyncReturns<T> {
448
448
  pid: number;
@@ -467,13 +467,13 @@ declare module "child_process" {
467
467
  shell?: string;
468
468
  killSignal?: NodeJS.Signals | number;
469
469
  maxBuffer?: number;
470
- encoding?: BufferEncoding;
470
+ encoding?: BufferEncoding | 'buffer' | null;
471
471
  }
472
472
  interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
473
473
  encoding: BufferEncoding;
474
474
  }
475
475
  interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
476
- encoding: BufferEncoding; // specify `null`.
476
+ encoding?: 'buffer' | null;
477
477
  }
478
478
  function execSync(command: string): Buffer;
479
479
  function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string;
node/globals.d.ts CHANGED
@@ -829,7 +829,7 @@ declare namespace NodeJS {
829
829
  visibility: string;
830
830
  };
831
831
  };
832
- kill(pid: number, signal?: string | number): void;
832
+ kill(pid: number, signal?: string | number): true;
833
833
  pid: number;
834
834
  ppid: number;
835
835
  title: string;
node/http2.d.ts CHANGED
@@ -575,8 +575,12 @@ declare module "http2" {
575
575
 
576
576
  readonly aborted: boolean;
577
577
  readonly authority: string;
578
+ readonly connection: net.Socket | tls.TLSSocket;
579
+ readonly complete: boolean;
578
580
  readonly headers: IncomingHttpHeaders;
579
581
  readonly httpVersion: string;
582
+ readonly httpVersionMinor: number;
583
+ readonly httpVersionMajor: number;
580
584
  readonly method: string;
581
585
  readonly rawHeaders: string[];
582
586
  readonly rawTrailers: string[];
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.0.5",
3
+ "version": "14.0.9",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -251,6 +251,6 @@
251
251
  },
252
252
  "scripts": {},
253
253
  "dependencies": {},
254
- "typesPublisherContentHash": "3c6dff84a51cbfcb7b5fafcfe136319afe7fe4df89f6246837084ae5c2e5f8b3",
254
+ "typesPublisherContentHash": "c1ba6cc6ea38ef0f7c4d29e13133863a3180bb6d6d41f4741ab2c0c38b034912",
255
255
  "typeScriptVersion": "3.0"
256
256
  }
node/stream.d.ts CHANGED
@@ -124,7 +124,7 @@ declare module "stream" {
124
124
  interface WritableOptions {
125
125
  highWaterMark?: number;
126
126
  decodeStrings?: boolean;
127
- defaultencoding?: BufferEncoding;
127
+ defaultEncoding?: BufferEncoding;
128
128
  objectMode?: boolean;
129
129
  emitClose?: boolean;
130
130
  write?(this: Writable, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;