@types/node 12.7.10 → 12.7.11

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.
Files changed (4) hide show
  1. node/README.md +1 -1
  2. node/globals.d.ts +0 -25
  3. node/package.json +2 -2
  4. node/process.d.ts +12 -0
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, 03 Oct 2019 16:38:17 GMT
11
+ * Last updated: Thu, 03 Oct 2019 20:33:32 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
14
14
 
node/globals.d.ts CHANGED
@@ -737,31 +737,6 @@ declare namespace NodeJS {
737
737
  [key: string]: string | undefined;
738
738
  }
739
739
 
740
- interface WriteStream extends Socket {
741
- readonly writableFinished: boolean;
742
- readonly writableHighWaterMark: number;
743
- readonly writableLength: number;
744
- columns?: number;
745
- rows?: number;
746
- _write(chunk: any, encoding: string, callback: (err?: null | Error) => void): void;
747
- _destroy(err: Error | null, callback: (err?: null | Error) => void): void;
748
- _final(callback: (err?: null | Error) => void): void;
749
- setDefaultEncoding(encoding: string): this;
750
- cork(): void;
751
- uncork(): void;
752
- destroy(error?: Error): void;
753
- }
754
- interface ReadStream extends Socket {
755
- readonly readableHighWaterMark: number;
756
- readonly readableLength: number;
757
- isRaw?: boolean;
758
- setRawMode?(mode: boolean): void;
759
- _read(size: number): void;
760
- _destroy(err: Error | null, callback: (err?: null | Error) => void): void;
761
- push(chunk: any, encoding?: string): boolean;
762
- destroy(error?: Error): void;
763
- }
764
-
765
740
  interface HRTime {
766
741
  (time?: [number, number]): [number, number];
767
742
  }
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.7.10",
3
+ "version": "12.7.11",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -211,6 +211,6 @@
211
211
  },
212
212
  "scripts": {},
213
213
  "dependencies": {},
214
- "typesPublisherContentHash": "2c3f119a959d6c63e80374054379fba87089eb190ed7cecb1286d4ef85a828a9",
214
+ "typesPublisherContentHash": "2ad0572bebbded00c170200439c2078a7151ff0bf2970c6cd3bd91cdc0cbd5dc",
215
215
  "typeScriptVersion": "2.0"
216
216
  }
node/process.d.ts CHANGED
@@ -1,3 +1,15 @@
1
1
  declare module "process" {
2
+ import * as tty from "tty";
3
+
4
+ global {
5
+ namespace NodeJS {
6
+ // this namespace merge is here because these are specifically used
7
+ // as the type for process.stdin, process.stdout, and process.stderr.
8
+ // they can't live in tty.d.ts because we need to disambiguate the imported name.
9
+ interface ReadStream extends tty.ReadStream {}
10
+ interface WriteStream extends tty.WriteStream {}
11
+ }
12
+ }
13
+
2
14
  export = process;
3
15
  }