@types/node 9.3.0 → 9.4.0
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/LICENSE +0 -0
- node/README.md +1 -1
- node/index.d.ts +31 -23
- node/inspector.d.ts +0 -0
- node/package.json +2 -2
node/LICENSE
CHANGED
|
File without changes
|
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://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 26 Jan 2018 17:21:18 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
|
|
14
14
|
|
node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Node.js 9.
|
|
1
|
+
// Type definitions for Node.js 9.4.x
|
|
2
2
|
// Project: http://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
|
|
@@ -410,6 +410,7 @@ declare namespace NodeJS {
|
|
|
410
410
|
setMaxListeners(n: number): this;
|
|
411
411
|
getMaxListeners(): number;
|
|
412
412
|
listeners(event: string | symbol): Function[];
|
|
413
|
+
rawListeners(event: string | symbol): Function[];
|
|
413
414
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
414
415
|
listenerCount(type: string | symbol): number;
|
|
415
416
|
// Added in Node 6...
|
|
@@ -520,6 +521,7 @@ declare namespace NodeJS {
|
|
|
520
521
|
|
|
521
522
|
export interface WriteStream extends Socket {
|
|
522
523
|
readonly writableHighWaterMark: number;
|
|
524
|
+
readonly writableLength: number;
|
|
523
525
|
columns?: number;
|
|
524
526
|
rows?: number;
|
|
525
527
|
_write(chunk: any, encoding: string, callback: Function): void;
|
|
@@ -532,6 +534,7 @@ declare namespace NodeJS {
|
|
|
532
534
|
}
|
|
533
535
|
export interface ReadStream extends Socket {
|
|
534
536
|
readonly readableHighWaterMark: number;
|
|
537
|
+
readonly readableLength: number;
|
|
535
538
|
isRaw?: boolean;
|
|
536
539
|
setRawMode?(mode: boolean): void;
|
|
537
540
|
_read(size: number): void;
|
|
@@ -916,6 +919,7 @@ declare module "events" {
|
|
|
916
919
|
setMaxListeners(n: number): this;
|
|
917
920
|
getMaxListeners(): number;
|
|
918
921
|
listeners(event: string | symbol): Function[];
|
|
922
|
+
rawListeners(event: string | symbol): Function[];
|
|
919
923
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
920
924
|
eventNames(): Array<string | symbol>;
|
|
921
925
|
listenerCount(type: string | symbol): number;
|
|
@@ -1466,27 +1470,28 @@ declare module "zlib" {
|
|
|
1466
1470
|
export function createInflateRaw(options?: ZlibOptions): InflateRaw;
|
|
1467
1471
|
export function createUnzip(options?: ZlibOptions): Unzip;
|
|
1468
1472
|
|
|
1469
|
-
|
|
1470
|
-
export function deflate(buf:
|
|
1471
|
-
export function
|
|
1472
|
-
export function
|
|
1473
|
-
export function deflateRaw(buf:
|
|
1474
|
-
export function
|
|
1475
|
-
export function
|
|
1476
|
-
export function gzip(buf:
|
|
1477
|
-
export function
|
|
1478
|
-
export function
|
|
1479
|
-
export function gunzip(buf:
|
|
1480
|
-
export function
|
|
1481
|
-
export function
|
|
1482
|
-
export function inflate(buf:
|
|
1483
|
-
export function
|
|
1484
|
-
export function
|
|
1485
|
-
export function inflateRaw(buf:
|
|
1486
|
-
export function
|
|
1487
|
-
export function
|
|
1488
|
-
export function unzip(buf:
|
|
1489
|
-
export function
|
|
1473
|
+
type InputType = string | Buffer | DataView | ArrayBuffer /* | TypedArray */;
|
|
1474
|
+
export function deflate(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1475
|
+
export function deflate(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1476
|
+
export function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
1477
|
+
export function deflateRaw(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1478
|
+
export function deflateRaw(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1479
|
+
export function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
1480
|
+
export function gzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1481
|
+
export function gzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1482
|
+
export function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
1483
|
+
export function gunzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1484
|
+
export function gunzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1485
|
+
export function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
1486
|
+
export function inflate(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1487
|
+
export function inflate(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1488
|
+
export function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
1489
|
+
export function inflateRaw(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1490
|
+
export function inflateRaw(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1491
|
+
export function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
1492
|
+
export function unzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1493
|
+
export function unzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
|
|
1494
|
+
export function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
1490
1495
|
|
|
1491
1496
|
export namespace constants {
|
|
1492
1497
|
// Allowed flush values.
|
|
@@ -5304,7 +5309,8 @@ declare module "stream" {
|
|
|
5304
5309
|
|
|
5305
5310
|
export class Readable extends Stream implements NodeJS.ReadableStream {
|
|
5306
5311
|
readable: boolean;
|
|
5307
|
-
readableHighWaterMark: number;
|
|
5312
|
+
readonly readableHighWaterMark: number;
|
|
5313
|
+
readonly readableLength: number;
|
|
5308
5314
|
constructor(opts?: ReadableOptions);
|
|
5309
5315
|
_read(size: number): void;
|
|
5310
5316
|
read(size?: number): any;
|
|
@@ -5392,6 +5398,7 @@ declare module "stream" {
|
|
|
5392
5398
|
export class Writable extends Stream implements NodeJS.WritableStream {
|
|
5393
5399
|
writable: boolean;
|
|
5394
5400
|
readonly writableHighWaterMark: number;
|
|
5401
|
+
readonly writableLength: number;
|
|
5395
5402
|
constructor(opts?: WritableOptions);
|
|
5396
5403
|
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
|
|
5397
5404
|
_writev?(chunks: Array<{chunk: any, encoding: string}>, callback: (err?: Error) => void): void;
|
|
@@ -5484,6 +5491,7 @@ declare module "stream" {
|
|
|
5484
5491
|
export class Duplex extends Readable implements Writable {
|
|
5485
5492
|
writable: boolean;
|
|
5486
5493
|
readonly writableHighWaterMark: number;
|
|
5494
|
+
readonly writableLength: number;
|
|
5487
5495
|
constructor(opts?: DuplexOptions);
|
|
5488
5496
|
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
|
|
5489
5497
|
_writev?(chunks: Array<{chunk: any, encoding: string}>, callback: (err?: Error) => void): void;
|
node/inspector.d.ts
CHANGED
|
File without changes
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -100,6 +100,6 @@
|
|
|
100
100
|
},
|
|
101
101
|
"scripts": {},
|
|
102
102
|
"dependencies": {},
|
|
103
|
-
"typesPublisherContentHash": "
|
|
103
|
+
"typesPublisherContentHash": "8efabc85034b89d04180d8e2fa19723f5d680c42f764c4832105412ec68a5d5e",
|
|
104
104
|
"typeScriptVersion": "2.0"
|
|
105
105
|
}
|