@types/node 10.5.3 → 10.5.4
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 +1 -1
- node/index.d.ts +10 -7
- node/package.json +2 -2
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:
|
|
11
|
+
* Last updated: Sat, 28 Jul 2018 00:44:17 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
|
@@ -694,7 +694,7 @@ declare namespace NodeJS {
|
|
|
694
694
|
columns?: number;
|
|
695
695
|
rows?: number;
|
|
696
696
|
_write(chunk: any, encoding: string, callback: Function): void;
|
|
697
|
-
_destroy(err: Error, callback: Function): void;
|
|
697
|
+
_destroy(err: Error | null, callback: Function): void;
|
|
698
698
|
_final(callback: Function): void;
|
|
699
699
|
setDefaultEncoding(encoding: string): this;
|
|
700
700
|
cork(): void;
|
|
@@ -707,7 +707,7 @@ declare namespace NodeJS {
|
|
|
707
707
|
isRaw?: boolean;
|
|
708
708
|
setRawMode?(mode: boolean): void;
|
|
709
709
|
_read(size: number): void;
|
|
710
|
-
_destroy(err: Error, callback: Function): void;
|
|
710
|
+
_destroy(err: Error | null, callback: Function): void;
|
|
711
711
|
push(chunk: any, encoding?: string): boolean;
|
|
712
712
|
destroy(error?: Error): void;
|
|
713
713
|
}
|
|
@@ -5972,7 +5972,7 @@ declare module "stream" {
|
|
|
5972
5972
|
encoding?: string;
|
|
5973
5973
|
objectMode?: boolean;
|
|
5974
5974
|
read?: (this: Readable, size?: number) => any;
|
|
5975
|
-
destroy?: (error?: Error) =>
|
|
5975
|
+
destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
|
|
5976
5976
|
}
|
|
5977
5977
|
|
|
5978
5978
|
export class Readable extends Stream implements NodeJS.ReadableStream {
|
|
@@ -5990,7 +5990,7 @@ declare module "stream" {
|
|
|
5990
5990
|
unshift(chunk: any): void;
|
|
5991
5991
|
wrap(oldStream: NodeJS.ReadableStream): this;
|
|
5992
5992
|
push(chunk: any, encoding?: string): boolean;
|
|
5993
|
-
_destroy(
|
|
5993
|
+
_destroy(error: Error | null, callback: (error?: Error) => void): void;
|
|
5994
5994
|
destroy(error?: Error): void;
|
|
5995
5995
|
|
|
5996
5996
|
/**
|
|
@@ -6060,7 +6060,7 @@ declare module "stream" {
|
|
|
6060
6060
|
objectMode?: boolean;
|
|
6061
6061
|
write?: (chunk: any, encoding: string, callback: Function) => any;
|
|
6062
6062
|
writev?: (chunks: Array<{ chunk: any, encoding: string }>, callback: Function) => any;
|
|
6063
|
-
destroy?: (error?: Error) =>
|
|
6063
|
+
destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
|
|
6064
6064
|
final?: (callback: (error?: Error) => void) => void;
|
|
6065
6065
|
}
|
|
6066
6066
|
|
|
@@ -6071,7 +6071,7 @@ declare module "stream" {
|
|
|
6071
6071
|
constructor(opts?: WritableOptions);
|
|
6072
6072
|
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
|
|
6073
6073
|
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
|
|
6074
|
-
_destroy(
|
|
6074
|
+
_destroy(error: Error | null, callback: (error?: Error) => void): void;
|
|
6075
6075
|
_final(callback: Function): void;
|
|
6076
6076
|
write(chunk: any, cb?: Function): boolean;
|
|
6077
6077
|
write(chunk: any, encoding?: string, cb?: Function): boolean;
|
|
@@ -6164,7 +6164,7 @@ declare module "stream" {
|
|
|
6164
6164
|
constructor(opts?: DuplexOptions);
|
|
6165
6165
|
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
|
|
6166
6166
|
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
|
|
6167
|
-
_destroy(
|
|
6167
|
+
_destroy(error: Error | null, callback: (error?: Error) => void): void;
|
|
6168
6168
|
_final(callback: Function): void;
|
|
6169
6169
|
write(chunk: any, cb?: Function): boolean;
|
|
6170
6170
|
write(chunk: any, encoding?: string, cb?: Function): boolean;
|
|
@@ -7181,6 +7181,7 @@ declare module "http2" {
|
|
|
7181
7181
|
readonly alpnProtocol?: string;
|
|
7182
7182
|
close(callback?: () => void): void;
|
|
7183
7183
|
readonly closed: boolean;
|
|
7184
|
+
readonly connecting: boolean;
|
|
7184
7185
|
destroy(error?: Error, code?: number): void;
|
|
7185
7186
|
readonly destroyed: boolean;
|
|
7186
7187
|
readonly encrypted?: boolean;
|
|
@@ -7188,6 +7189,8 @@ declare module "http2" {
|
|
|
7188
7189
|
readonly localSettings: Settings;
|
|
7189
7190
|
readonly originSet?: string[];
|
|
7190
7191
|
readonly pendingSettingsAck: boolean;
|
|
7192
|
+
ping(callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean;
|
|
7193
|
+
ping(payload: Buffer | DataView | NodeJS.TypedArray , callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean;
|
|
7191
7194
|
ref(): void;
|
|
7192
7195
|
readonly remoteSettings: Settings;
|
|
7193
7196
|
rstStream(stream: Http2Stream, code?: number): void;
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.4",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -140,6 +140,6 @@
|
|
|
140
140
|
},
|
|
141
141
|
"scripts": {},
|
|
142
142
|
"dependencies": {},
|
|
143
|
-
"typesPublisherContentHash": "
|
|
143
|
+
"typesPublisherContentHash": "f5d750c92591244ab500cdeda02599e0c7f820d216b4a60e4e928994521837c3",
|
|
144
144
|
"typeScriptVersion": "2.0"
|
|
145
145
|
}
|