WIP

WIP

WIP

WIP

WIP

WIP: Remove trailing newlines

WIP

WIP

WIP

WIP

WIP

WIP

WIP

WIP: All tests pass

WIP

WIP

WIP
This commit is contained in:
Andy Hanson
2016-11-28 11:16:06 -08:00
parent cd4debea25
commit 89fa98a712
1473 changed files with 77478 additions and 76346 deletions
+16 -16
View File
@@ -250,7 +250,7 @@ declare namespace NodeJS {
export var Console: {
prototype: Console;
new(stdout: WritableStream, stderr?: WritableStream): Console;
}
};
export interface ErrnoException extends Error {
errno?: number;
@@ -1028,7 +1028,7 @@ declare module "cluster" {
declare module "zlib" {
import * as stream from "stream";
export interface ZlibOptions { chunkSize?: number; windowBits?: number; level?: number; memLevel?: number; strategy?: number; dictionary?: any; finishFlush?: number }
export interface ZlibOptions { chunkSize?: number; windowBits?: number; level?: number; memLevel?: number; strategy?: number; dictionary?: any; finishFlush?: number; }
export interface Gzip extends stream.Transform { }
export interface Gunzip extends stream.Transform { }
@@ -1126,7 +1126,7 @@ declare module "os" {
export function release(): string;
export function networkInterfaces(): { [index: string]: NetworkInterfaceInfo[] };
export function homedir(): string;
export function userInfo(options?: { encoding: string }): { username: string, uid: number, gid: number, shell: any, homedir: string }
export function userInfo(options?: { encoding: string }): { username: string, uid: number, gid: number, shell: any, homedir: string };
export var constants: {
UV_UDP_REUSEADDR: number,
errno: {
@@ -1772,8 +1772,8 @@ declare module "url" {
declare module "dns" {
export interface MxRecord {
exchange: string,
priority: number
exchange: string;
priority: number;
}
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) => void): string;
@@ -2724,7 +2724,7 @@ declare module "path" {
*/
export function format(pathObject: ParsedPath): string;
export module posix {
export namespace posix {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
@@ -2739,7 +2739,7 @@ declare module "path" {
export function format(pP: ParsedPath): string;
}
export module win32 {
export namespace win32 {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
@@ -2815,7 +2815,7 @@ declare module "tls" {
/**
* Construct a new tls.TLSSocket object from an existing TCP socket.
*/
constructor(socket:net.Socket, options?: {
constructor(socket: net.Socket, options?: {
/**
* An optional TLS context object from tls.createSecureContext()
*/
@@ -3034,7 +3034,7 @@ declare module "tls" {
host?: string;
port?: number;
socket?: net.Socket;
pfx?: string | Buffer
pfx?: string | Buffer;
key?: string | string[] | Buffer | Buffer[];
passphrase?: string;
cert?: string | string[] | Buffer | Buffer[];
@@ -3141,7 +3141,7 @@ declare module "tls" {
passphrase?: string;
cert?: string | Buffer;
ca?: string | Buffer;
crl?: string | string[]
crl?: string | string[];
ciphers?: string;
honorCipherOrder?: boolean;
}
@@ -3167,7 +3167,7 @@ declare module "crypto" {
export var Certificate: {
new (): Certificate;
(): Certificate;
}
};
export var fips: boolean;
@@ -3281,13 +3281,13 @@ declare module "crypto" {
}
export interface RsaPrivateKey {
key: string;
passphrase?: string,
passphrase?: string;
padding?: number;
}
export function publicEncrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer
export function privateDecrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer
export function privateEncrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer
export function publicDecrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer
export function publicEncrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer;
export function privateDecrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer;
export function privateEncrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer;
export function publicDecrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer;
export function getCiphers(): string[];
export function getCurves(): string[];
export function getHashes(): string[];
+45 -45
View File
@@ -29,7 +29,7 @@ declare function clearImmediate(immediateId: any): void;
declare var require: {
(id: string): any;
resolve(id:string): string;
resolve(id: string): string;
cache: any;
extensions: any;
main: any;
@@ -176,7 +176,7 @@ declare namespace NodeJS {
visibility: string;
};
};
kill(pid:number, signal?: string|number): void;
kill(pid: number, signal?: string|number): void;
pid: number;
title: string;
arch: string;
@@ -185,15 +185,15 @@ declare namespace NodeJS {
nextTick(callback: Function): void;
umask(mask?: number): number;
uptime(): number;
hrtime(time?:number[]): number[];
hrtime(time?: number[]): number[];
// Worker
send?(message: any, sendHandle?: any): void;
}
export interface Timer {
ref() : void;
unref() : void;
ref(): void;
unref(): void;
}
}
@@ -434,7 +434,7 @@ declare module "http" {
[errorCode: number]: string;
[errorCode: string]: string;
};
export function createServer(requestListener?: (request: ServerRequest, response: ServerResponse) =>void ): Server;
export function createServer(requestListener?: (request: ServerRequest, response: ServerResponse) => void ): Server;
export function createClient(port?: number, host?: string): any;
export function request(options: RequestOptions, callback?: (response: ClientResponse) => void): ClientRequest;
export function get(options: RequestOptions, callback?: (response: ClientResponse) => void): ClientRequest;
@@ -500,13 +500,13 @@ declare module "zlib" {
export function createInflateRaw(options?: ZlibOptions): InflateRaw;
export function createUnzip(options?: ZlibOptions): Unzip;
export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function deflate(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function gzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function gunzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function inflate(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function unzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
// Constants
export var Z_NO_FLUSH: number;
@@ -606,8 +606,8 @@ declare module "https" {
};
export interface Server extends tls.Server { }
export function createServer(options: ServerOptions, requestListener?: Function): Server;
export function request(options: RequestOptions, callback?: (res: http.ClientResponse) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.ClientResponse) =>void ): http.ClientRequest;
export function request(options: RequestOptions, callback?: (res: http.ClientResponse) => void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.ClientResponse) => void ): http.ClientRequest;
export var globalAgent: Agent;
}
@@ -682,7 +682,7 @@ declare module "child_process" {
import stream = require("stream");
export interface ChildProcess extends events.EventEmitter {
stdin: stream.Writable;
stdin: stream.Writable;
stdout: stream.Readable;
stderr: stream.Readable;
pid: number;
@@ -708,12 +708,12 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string,
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string, args?: string[],
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string, args?: string[], options?: {
cwd?: string;
stdio?: any;
@@ -723,7 +723,7 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function fork(modulePath: string, args?: string[], options?: {
cwd?: string;
env?: any;
@@ -753,18 +753,18 @@ declare module "url" {
}
declare module "dns" {
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) =>void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) =>void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) =>void ): string[];
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) => void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) => void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) => void ): string[];
}
declare module "net" {
@@ -863,12 +863,12 @@ declare module "net" {
prependOnceListener(event: "error", listener: (err: Error) => void): this;
prependOnceListener(event: "listening", listener: () => void): this;
}
export function createServer(connectionListener?: (socket: Socket) =>void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) =>void ): Server;
export function connect(options: { port: number, host?: string, localAddress? : string, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createServer(connectionListener?: (socket: Socket) => void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) => void ): Server;
export function connect(options: { port: number, host?: string, localAddress?: string, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function connect(port: number, host?: string, connectionListener?: Function): Socket;
export function connect(path: string, connectionListener?: Function): Socket;
export function createConnection(options: { port: number, host?: string, localAddress? : string, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createConnection(options: { port: number, host?: string, localAddress?: string, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createConnection(port: number, host?: string, connectionListener?: Function): Socket;
export function createConnection(path: string, connectionListener?: Function): Socket;
export function isIP(input: string): number;
@@ -984,7 +984,7 @@ declare module "fs" {
export function readlink(path: string, callback?: (err: NodeJS.ErrnoException, linkString: string) => any): void;
export function readlinkSync(path: string): string;
export function realpath(path: string, callback?: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) =>any): void;
export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
export function realpathSync(path: string, cache?: {[path: string]: string}): string;
export function unlink(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
export function unlinkSync(path: string): void;
@@ -1161,10 +1161,10 @@ declare module "tls" {
cleartext: any;
}
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) =>void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () =>void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) => void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () => void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
}
@@ -1237,11 +1237,11 @@ declare module "crypto" {
}
export function getDiffieHellman(group_name: string): DiffieHellman;
export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, callback: (err: Error, derivedKey: Buffer) => any): void;
export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number) : Buffer;
export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number): Buffer;
export function randomBytes(size: number): Buffer;
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) => void ): void;
export function pseudoRandomBytes(size: number): Buffer;
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) => void ): void;
}
declare module "stream" {
+44 -44
View File
@@ -29,7 +29,7 @@ declare function clearImmediate(immediateId: any): void;
declare var require: {
(id: string): any;
resolve(id:string): string;
resolve(id: string): string;
cache: any;
extensions: any;
main: any;
@@ -176,7 +176,7 @@ declare namespace NodeJS {
visibility: string;
};
};
kill(pid:number, signal?: string|number): void;
kill(pid: number, signal?: string|number): void;
pid: number;
title: string;
arch: string;
@@ -185,15 +185,15 @@ declare namespace NodeJS {
nextTick(callback: Function): void;
umask(mask?: number): number;
uptime(): number;
hrtime(time?:number[]): number[];
hrtime(time?: number[]): number[];
// Worker
send?(message: any, sendHandle?: any): void;
}
export interface Timer {
ref() : void;
unref() : void;
ref(): void;
unref(): void;
}
}
@@ -356,7 +356,7 @@ declare module "http" {
[errorCode: number]: string;
[errorCode: string]: string;
};
export function createServer(requestListener?: (request: ServerRequest, response: ServerResponse) =>void ): Server;
export function createServer(requestListener?: (request: ServerRequest, response: ServerResponse) => void ): Server;
export function createClient(port?: number, host?: string): any;
export function request(options: any, callback?: Function): ClientRequest;
export function get(options: any, callback?: Function): ClientRequest;
@@ -423,13 +423,13 @@ declare module "zlib" {
export function createInflateRaw(options?: ZlibOptions): InflateRaw;
export function createUnzip(options?: ZlibOptions): Unzip;
export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function deflate(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function gzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function gunzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function inflate(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function unzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
// Constants
export var Z_NO_FLUSH: number;
@@ -529,8 +529,8 @@ declare module "https" {
};
export interface Server extends tls.Server { }
export function createServer(options: ServerOptions, requestListener?: Function): Server;
export function request(options: RequestOptions, callback?: (res: events.EventEmitter) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: events.EventEmitter) =>void ): http.ClientRequest;
export function request(options: RequestOptions, callback?: (res: events.EventEmitter) => void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: events.EventEmitter) => void ): http.ClientRequest;
export var globalAgent: Agent;
}
@@ -605,7 +605,7 @@ declare module "child_process" {
import stream = require("stream");
export interface ChildProcess extends events.EventEmitter {
stdin: stream.Writable;
stdin: stream.Writable;
stdout: stream.Readable;
stderr: stream.Readable;
pid: number;
@@ -631,8 +631,8 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string, args: string[], options: {
cwd?: string;
stdio?: any;
@@ -642,7 +642,7 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function fork(modulePath: string, args?: string[], options?: {
cwd?: string;
env?: any;
@@ -672,18 +672,18 @@ declare module "url" {
}
declare module "dns" {
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) =>void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) =>void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) =>void ): string[];
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) => void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) => void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) => void ): string[];
}
declare module "net" {
@@ -779,12 +779,12 @@ declare module "net" {
prependOnceListener(event: "error", listener: (err: Error) => void): this;
prependOnceListener(event: "listening", listener: () => void): this;
}
export function createServer(connectionListener?: (socket: Socket) =>void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) =>void ): Server;
export function connect(options: { port: number, host?: string, localAddress? : string, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createServer(connectionListener?: (socket: Socket) => void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) => void ): Server;
export function connect(options: { port: number, host?: string, localAddress?: string, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function connect(port: number, host?: string, connectionListener?: Function): Socket;
export function connect(path: string, connectionListener?: Function): Socket;
export function createConnection(options: { port: number, host?: string, localAddress? : string, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createConnection(options: { port: number, host?: string, localAddress?: string, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createConnection(port: number, host?: string, connectionListener?: Function): Socket;
export function createConnection(path: string, connectionListener?: Function): Socket;
export function isIP(input: string): number;
@@ -895,7 +895,7 @@ declare module "fs" {
export function readlink(path: string, callback?: (err: NodeJS.ErrnoException, linkString: string) => any): void;
export function readlinkSync(path: string): string;
export function realpath(path: string, callback?: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) =>any): void;
export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
export function realpathSync(path: string, cache?: {[path: string]: string}): string;
export function unlink(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
export function unlinkSync(path: string): void;
@@ -1072,10 +1072,10 @@ declare module "tls" {
cleartext: any;
}
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) =>void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () =>void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) => void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () => void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
}
@@ -1145,11 +1145,11 @@ declare module "crypto" {
}
export function getDiffieHellman(group_name: string): DiffieHellman;
export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, callback: (err: Error, derivedKey: Buffer) => any): void;
export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number) : Buffer;
export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number): Buffer;
export function randomBytes(size: number): Buffer;
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) => void ): void;
export function pseudoRandomBytes(size: number): Buffer;
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) => void ): void;
}
declare module "stream" {
@@ -1280,7 +1280,7 @@ declare module "util" {
export function isFunction(arg: any): boolean;
export function isPrimitive(arg: any): boolean;
export function isBuffer(arg: any): boolean;
export function log(...arg: any[]): void
export function log(...arg: any[]): void;
export function inherits(constructor: any, superConstructor: any): void;
export function p(...arg: any[]): void;
export function exec(...arg: any[]): void;
+49 -49
View File
@@ -45,7 +45,7 @@ interface NodeRequireFunction {
}
interface NodeRequire extends NodeRequireFunction {
resolve(id:string): string;
resolve(id: string): string;
cache: any;
extensions: any;
main: any;
@@ -257,7 +257,7 @@ declare namespace NodeJS {
visibility: string;
};
};
kill(pid:number, signal?: string|number): void;
kill(pid: number, signal?: string|number): void;
pid: number;
title: string;
arch: string;
@@ -266,7 +266,7 @@ declare namespace NodeJS {
nextTick(callback: Function): void;
umask(mask?: number): number;
uptime(): number;
hrtime(time?:number[]): number[];
hrtime(time?: number[]): number[];
// Worker
send?(message: any, sendHandle?: any): void;
@@ -339,8 +339,8 @@ declare namespace NodeJS {
}
export interface Timer {
ref() : void;
unref() : void;
ref(): void;
unref(): void;
}
}
@@ -567,7 +567,7 @@ declare module "http" {
[errorCode: number]: string;
[errorCode: string]: string;
};
export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) =>void ): Server;
export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) => void ): Server;
export function createClient(port?: number, host?: string): any;
export function request(options: any, callback?: (res: IncomingMessage) => void): ClientRequest;
export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest;
@@ -634,19 +634,19 @@ declare module "zlib" {
export function createInflateRaw(options?: ZlibOptions): InflateRaw;
export function createUnzip(options?: ZlibOptions): Unzip;
export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function deflate(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function deflateSync(buf: Buffer, options?: ZlibOptions): any;
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function deflateRawSync(buf: Buffer, options?: ZlibOptions): any;
export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function gzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function gzipSync(buf: Buffer, options?: ZlibOptions): any;
export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function gunzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function gunzipSync(buf: Buffer, options?: ZlibOptions): any;
export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function inflate(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function inflateSync(buf: Buffer, options?: ZlibOptions): any;
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function inflateRawSync(buf: Buffer, options?: ZlibOptions): any;
export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function unzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function unzipSync(buf: Buffer, options?: ZlibOptions): any;
// Constants
@@ -747,8 +747,8 @@ declare module "https" {
};
export interface Server extends tls.Server { }
export function createServer(options: ServerOptions, requestListener?: Function): Server;
export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest;
export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) => void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) => void ): http.ClientRequest;
export var globalAgent: Agent;
}
@@ -823,7 +823,7 @@ declare module "child_process" {
import * as stream from "stream";
export interface ChildProcess extends events.EventEmitter {
stdin: stream.Writable;
stdin: stream.Writable;
stdout: stream.Readable;
stderr: stream.Readable;
pid: number;
@@ -850,12 +850,12 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function exec(command: string, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string,
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string, args?: string[],
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string, args?: string[], options?: {
cwd?: string;
stdio?: any;
@@ -865,7 +865,7 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function fork(modulePath: string, args?: string[], options?: {
cwd?: string;
env?: any;
@@ -939,18 +939,18 @@ declare module "url" {
}
declare module "dns" {
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) =>void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) =>void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) =>void ): string[];
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) => void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) => void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) => void ): string[];
}
declare module "net" {
@@ -1052,12 +1052,12 @@ declare module "net" {
prependOnceListener(event: "error", listener: (err: Error) => void): this;
prependOnceListener(event: "listening", listener: () => void): this;
}
export function createServer(connectionListener?: (socket: Socket) =>void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) =>void ): Server;
export function connect(options: { port: number, host?: string, localAddress? : string, localPort? : string, family? : number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createServer(connectionListener?: (socket: Socket) => void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) => void ): Server;
export function connect(options: { port: number, host?: string, localAddress?: string, localPort?: string, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function connect(port: number, host?: string, connectionListener?: Function): Socket;
export function connect(path: string, connectionListener?: Function): Socket;
export function createConnection(options: { port: number, host?: string, localAddress? : string, localPort? : string, family? : number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createConnection(options: { port: number, host?: string, localAddress?: string, localPort?: string, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createConnection(port: number, host?: string, connectionListener?: Function): Socket;
export function createConnection(path: string, connectionListener?: Function): Socket;
export function isIP(input: string): number;
@@ -1185,7 +1185,7 @@ declare module "fs" {
export function readlink(path: string, callback?: (err: NodeJS.ErrnoException, linkString: string) => any): void;
export function readlinkSync(path: string): string;
export function realpath(path: string, callback?: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) =>any): void;
export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
export function realpathSync(path: string, cache?: { [path: string]: string }): string;
/*
* Asynchronous unlink - deletes the file specified in {path}
@@ -1491,7 +1491,7 @@ declare module "path" {
*/
export function format(pathObject: ParsedPath): string;
export module posix {
export namespace posix {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
@@ -1506,7 +1506,7 @@ declare module "path" {
export function format(pP: ParsedPath): string;
}
export module win32 {
export namespace win32 {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
@@ -1624,10 +1624,10 @@ declare module "tls" {
context: any;
}
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) =>void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () =>void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) => void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () => void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
export function createSecureContext(details: SecureContextOptions): SecureContext;
}
@@ -1702,12 +1702,12 @@ declare module "crypto" {
export function getDiffieHellman(group_name: string): DiffieHellman;
export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, callback: (err: Error, derivedKey: Buffer) => any): void;
export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, digest: string, callback: (err: Error, derivedKey: Buffer) => any): void;
export function pbkdf2Sync(password: string, salt: string, iterations: number, keylen: number) : Buffer;
export function pbkdf2Sync(password: string, salt: string, iterations: number, keylen: number, digest: string) : Buffer;
export function pbkdf2Sync(password: string, salt: string, iterations: number, keylen: number): Buffer;
export function pbkdf2Sync(password: string, salt: string, iterations: number, keylen: number, digest: string): Buffer;
export function randomBytes(size: number): Buffer;
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) => void ): void;
export function pseudoRandomBytes(size: number): Buffer;
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) => void ): void;
}
declare module "stream" {
@@ -1820,7 +1820,7 @@ declare module "util" {
export function isDate(object: any): boolean;
export function isError(object: any): boolean;
export function inherits(constructor: any, superConstructor: any): void;
export function debuglog(key:string): (msg:string,...param: any[])=>void;
export function debuglog(key: string): (msg: string, ...param: any[]) => void;
}
declare module "assert" {
+48 -48
View File
@@ -30,7 +30,7 @@ declare var require: {
resolve(): string;
cache: any;
extensions: any;
}
};
declare var module: {
exports: any;
@@ -40,7 +40,7 @@ declare var module: {
loaded: boolean;
parent: any;
children: any[];
}
};
// Same as module.exports
declare var exports: any;
@@ -61,7 +61,7 @@ declare var Buffer: {
isBuffer(obj: any): boolean;
byteLength(string: string, encoding?: string): number;
concat(list: Buffer[], totalLength?: number): Buffer;
}
};
/************************************************
* *
@@ -150,7 +150,7 @@ interface NodeProcess extends EventEmitter {
visibility: string;
};
};
kill(pid:number, signal?: string|number): void;
kill(pid: number, signal?: string|number): void;
pid: number;
title: string;
arch: string;
@@ -293,7 +293,7 @@ declare module "http" {
export interface Agent { maxSockets: number; sockets: any; requests: any; }
export var STATUS_CODES;
export function createServer(requestListener?: (request: ServerRequest, response: ServerResponse) =>void ): Server;
export function createServer(requestListener?: (request: ServerRequest, response: ServerResponse) => void ): Server;
export function createClient(port?: number, host?: string): any;
export function request(options: any, callback?: Function): ClientRequest;
export function get(options: any, callback?: Function): ClientRequest;
@@ -357,13 +357,13 @@ declare module "zlib" {
export function createInflateRaw(options: ZlibOptions): InflateRaw;
export function createUnzip(options: ZlibOptions): Unzip;
export function deflate(buf: Buffer, callback: (error: Error, result) =>void ): void;
export function deflateRaw(buf: Buffer, callback: (error: Error, result) =>void ): void;
export function gzip(buf: Buffer, callback: (error: Error, result) =>void ): void;
export function gunzip(buf: Buffer, callback: (error: Error, result) =>void ): void;
export function inflate(buf: Buffer, callback: (error: Error, result) =>void ): void;
export function inflateRaw(buf: Buffer, callback: (error: Error, result) =>void ): void;
export function unzip(buf: Buffer, callback: (error: Error, result) =>void ): void;
export function deflate(buf: Buffer, callback: (error: Error, result) => void ): void;
export function deflateRaw(buf: Buffer, callback: (error: Error, result) => void ): void;
export function gzip(buf: Buffer, callback: (error: Error, result) => void ): void;
export function gunzip(buf: Buffer, callback: (error: Error, result) => void ): void;
export function inflate(buf: Buffer, callback: (error: Error, result) => void ): void;
export function inflateRaw(buf: Buffer, callback: (error: Error, result) => void ): void;
export function unzip(buf: Buffer, callback: (error: Error, result) => void ): void;
// Constants
export var Z_NO_FLUSH: number;
@@ -463,8 +463,8 @@ declare module "https" {
};
export interface Server extends tls.Server { }
export function createServer(options: ServerOptions, requestListener?: Function): Server;
export function request(options: RequestOptions, callback?: (res: events.NodeEventEmitter) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: events.NodeEventEmitter) =>void ): http.ClientRequest;
export function request(options: RequestOptions, callback?: (res: events.NodeEventEmitter) => void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: events.NodeEventEmitter) => void ): http.ClientRequest;
export var globalAgent: NodeAgent;
}
@@ -565,8 +565,8 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string, args: string[], options: {
cwd?: string;
stdio?: any;
@@ -576,7 +576,7 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function fork(modulePath: string, args?: string[], options?: {
cwd?: string;
env?: any;
@@ -604,18 +604,18 @@ declare module "url" {
}
declare module "dns" {
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) =>void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) =>void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) =>void ): string[];
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) => void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) => void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) => void ): string[];
}
declare module "net" {
@@ -702,8 +702,8 @@ declare module "net" {
prependOnceListener(event: "error", listener: (err: Error) => void): this;
prependOnceListener(event: "listening", listener: () => void): this;
}
export function createServer(connectionListener?: (socket: NodeSocket) =>void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: NodeSocket) =>void ): Server;
export function createServer(connectionListener?: (socket: NodeSocket) => void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: NodeSocket) => void ): Server;
export function connect(options: { allowHalfOpen?: boolean; }, connectionListener?: Function): void;
export function connect(port: number, host?: string, connectionListener?: Function): void;
export function connect(path: string, connectionListener?: Function): void;
@@ -782,9 +782,9 @@ declare module "fs" {
export function fchmodSync(fd: string, mode: string): void;
export function lchmod(path: string, mode: string, callback?: Function): void;
export function lchmodSync(path: string, mode: string): void;
export function stat(path: string, callback?: (err: ErrnoException, stats: Stats) =>any): Stats;
export function lstat(path: string, callback?: (err: ErrnoException, stats: Stats) =>any): Stats;
export function fstat(fd: string, callback?: (err: ErrnoException, stats: Stats) =>any): Stats;
export function stat(path: string, callback?: (err: ErrnoException, stats: Stats) => any): Stats;
export function lstat(path: string, callback?: (err: ErrnoException, stats: Stats) => any): Stats;
export function fstat(fd: string, callback?: (err: ErrnoException, stats: Stats) => any): Stats;
export function statSync(path: string): Stats;
export function lstatSync(path: string): Stats;
export function fstatSync(fd: string): Stats;
@@ -792,9 +792,9 @@ declare module "fs" {
export function linkSync(srcpath: string, dstpath: string): void;
export function symlink(srcpath: string, dstpath: string, type?: string, callback?: Function): void;
export function symlinkSync(srcpath: string, dstpath: string, type?: string): void;
export function readlink(path: string, callback?: (err: ErrnoException, linkString: string) =>any): void;
export function realpath(path: string, callback?: (err: ErrnoException, resolvedPath: string) =>any): void;
export function realpath(path: string, cache: string, callback: (err: ErrnoException, resolvedPath: string) =>any): void;
export function readlink(path: string, callback?: (err: ErrnoException, linkString: string) => any): void;
export function realpath(path: string, callback?: (err: ErrnoException, resolvedPath: string) => any): void;
export function realpath(path: string, cache: string, callback: (err: ErrnoException, resolvedPath: string) => any): void;
export function realpathSync(path: string, cache?: string): void;
export function unlink(path: string, callback?: Function): void;
export function unlinkSync(path: string): void;
@@ -806,7 +806,7 @@ declare module "fs" {
export function readdirSync(path: string): string[];
export function close(fd: string, callback?: Function): void;
export function closeSync(fd: string): void;
export function open(path: string, flags: string, mode?: string, callback?: (err: ErrnoException, fd: string) =>any): void;
export function open(path: string, flags: string, mode?: string, callback?: (err: ErrnoException, fd: string) => any): void;
export function openSync(path: string, flags: string, mode?: string): void;
export function utimes(path: string, atime: number, mtime: number, callback?: Function): void;
export function utimesSync(path: string, atime: number, mtime: number): void;
@@ -814,7 +814,7 @@ declare module "fs" {
export function futimesSync(fd: string, atime: number, mtime: number): void;
export function fsync(fd: string, callback?: Function): void;
export function fsyncSync(fd: string): void;
export function write(fd: string, buffer: Buffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: Buffer) =>any): void;
export function write(fd: string, buffer: Buffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: Buffer) => any): void;
export function writeSync(fd: string, buffer: Buffer, offset: number, length: number, position: number): void;
export function read(fd: string, buffer: Buffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: Buffer) => void): void;
export function readSync(fd: string, buffer: Buffer, offset: number, length: number, position?: number): any[];
@@ -830,8 +830,8 @@ declare module "fs" {
export function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void;
export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void;
export function unwatchFile(filename: string, listener?: Stats): void;
export function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) =>any): FSWatcher;
export function exists(path: string, callback?: (exists: boolean) =>void ): void;
export function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher;
export function exists(path: string, callback?: (exists: boolean) => void ): void;
export function existsSync(path: string): boolean;
export function createReadStream(path: string, options?: {
flags?: string;
@@ -949,10 +949,10 @@ declare module "tls" {
cleartext: any;
}
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) =>void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () =>void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) => void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () => void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
}
@@ -1016,7 +1016,7 @@ declare module "crypto" {
}
export function getDiffieHellman(group_name: string): DiffieHellman;
export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, callback: (err: Error, derivedKey: string) => any): void;
export function randomBytes(size: number, callback?: (err: Error, buf: Buffer) =>void );
export function randomBytes(size: number, callback?: (err: Error, buf: Buffer) => void );
}
declare module "stream" {
@@ -1062,7 +1062,7 @@ declare module "util" {
declare module "assert" {
export function internal(booleanValue: boolean, message?: string): void;
export module internal {
export namespace internal {
export function fail(actual: any, expected: any, message: string, operator: string): void;
export function assert(value: any, message: string): void;
export function ok(value: any, message?: string): void;
@@ -1101,7 +1101,7 @@ declare module "domain" {
export function run(fn: Function): void;
export function add(emitter: events.NodeEventEmitter): void;
export function remove(emitter: events.NodeEventEmitter): void;
export function bind(cb: (er: Error, data: any) =>any): any;
export function bind(cb: (er: Error, data: any) => any): any;
export function intercept(cb: (data: any) => any): any;
export function dispose(): void;
}
+64 -64
View File
@@ -49,7 +49,7 @@ interface NodeRequireFunction {
}
interface NodeRequire extends NodeRequireFunction {
resolve(id:string): string;
resolve(id: string): string;
cache: any;
extensions: any;
main: NodeModule;
@@ -149,7 +149,7 @@ declare var Buffer: {
* @param byteOffset
* @param length
*/
from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?:number): Buffer;
from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
/**
* Copies the passed {buffer} data onto a new Buffer instance.
*
@@ -334,7 +334,7 @@ declare namespace NodeJS {
visibility: string;
};
};
kill(pid:number, signal?: string|number): void;
kill(pid: number, signal?: string|number): void;
pid: number;
title: string;
arch: string;
@@ -344,7 +344,7 @@ declare namespace NodeJS {
nextTick(callback: Function): void;
umask(mask?: number): number;
uptime(): number;
hrtime(time?:number[]): number[];
hrtime(time?: number[]): number[];
domain: Domain;
// Worker
@@ -420,8 +420,8 @@ declare namespace NodeJS {
}
export interface Timer {
ref() : void;
unref() : void;
ref(): void;
unref(): void;
}
}
@@ -687,7 +687,7 @@ declare module "http" {
[errorCode: number]: string;
[errorCode: string]: string;
};
export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) =>void ): Server;
export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) => void ): Server;
export function createClient(port?: number, host?: string): any;
export function request(options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest;
@@ -771,19 +771,19 @@ declare module "zlib" {
export function createInflateRaw(options?: ZlibOptions): InflateRaw;
export function createUnzip(options?: ZlibOptions): Unzip;
export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function deflate(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function deflateSync(buf: Buffer, options?: ZlibOptions): any;
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function deflateRawSync(buf: Buffer, options?: ZlibOptions): any;
export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function gzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function gzipSync(buf: Buffer, options?: ZlibOptions): any;
export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function gunzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function gunzipSync(buf: Buffer, options?: ZlibOptions): any;
export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function inflate(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function inflateSync(buf: Buffer, options?: ZlibOptions): any;
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function inflateRawSync(buf: Buffer, options?: ZlibOptions): any;
export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
export function unzip(buf: Buffer, callback: (error: Error, result: any) => void ): void;
export function unzipSync(buf: Buffer, options?: ZlibOptions): any;
// Constants
@@ -908,8 +908,8 @@ declare module "https" {
};
export interface Server extends tls.Server { }
export function createServer(options: ServerOptions, requestListener?: Function): Server;
export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest;
export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) => void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) => void ): http.ClientRequest;
export var globalAgent: Agent;
}
@@ -1027,7 +1027,7 @@ declare module "child_process" {
import * as stream from "stream";
export interface ChildProcess extends events.EventEmitter {
stdin: stream.Writable;
stdin: stream.Writable;
stdout: stream.Readable;
stderr: stream.Readable;
stdio: [stream.Writable, stream.Readable, stream.Readable];
@@ -1066,11 +1066,11 @@ declare module "child_process" {
export interface ExecOptionsWithBufferEncoding extends ExecOptions {
encoding: string; // specify `null`.
}
export function exec(command: string, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function exec(command: string, options: ExecOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function exec(command: string, callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
export function exec(command: string, options: ExecOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
// usage. child_process.exec("tsc", {encoding: null as string}, (err, stdout, stderr) => {});
export function exec(command: string, options: ExecOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, options: ExecOptions, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function exec(command: string, options: ExecOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function exec(command: string, options: ExecOptions, callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
export interface ExecFileOptions {
cwd?: string;
@@ -1087,16 +1087,16 @@ declare module "child_process" {
export interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
encoding: string; // specify `null`.
}
export function execFile(file: string, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function execFile(file: string, options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function execFile(file: string, callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
export function execFile(file: string, options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
// usage. child_process.execFile("file.sh", {encoding: null as string}, (err, stdout, stderr) => {});
export function execFile(file: string, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function execFile(file: string, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function execFile(file: string, args?: string[], callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function execFile(file: string, options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string, options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
export function execFile(file: string, args?: string[], callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithStringEncoding, callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
// usage. child_process.execFile("file.sh", ["foo"], {encoding: null as string}, (err, stdout, stderr) => {});
export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function execFile(file: string, args?: string[], options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) =>void ): ChildProcess;
export function execFile(file: string, args?: string[], options?: ExecFileOptionsWithBufferEncoding, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void ): ChildProcess;
export function execFile(file: string, args?: string[], options?: ExecFileOptions, callback?: (error: Error, stdout: string, stderr: string) => void ): ChildProcess;
export interface ForkOptions {
cwd?: string;
@@ -1218,18 +1218,18 @@ declare module "url" {
}
declare module "dns" {
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) =>void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) =>void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) =>void ): string[];
export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) => void ): string;
export function lookup(domain: string, callback: (err: Error, address: string, family: number) => void ): string;
export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve4(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolve6(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) => void ): string[];
export function reverse(ip: string, callback: (err: Error, domains: string[]) => void ): string[];
}
declare module "net" {
@@ -1348,12 +1348,12 @@ declare module "net" {
prependOnceListener(event: "error", listener: (err: Error) => void): this;
prependOnceListener(event: "listening", listener: () => void): this;
}
export function createServer(connectionListener?: (socket: Socket) =>void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) =>void ): Server;
export function connect(options: { port: number, host?: string, localAddress? : string, localPort? : string, family? : number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createServer(connectionListener?: (socket: Socket) => void ): Server;
export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) => void ): Server;
export function connect(options: { port: number, host?: string, localAddress?: string, localPort?: string, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function connect(port: number, host?: string, connectionListener?: Function): Socket;
export function connect(path: string, connectionListener?: Function): Socket;
export function createConnection(options: { port: number, host?: string, localAddress? : string, localPort? : string, family? : number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createConnection(options: { port: number, host?: string, localAddress?: string, localPort?: string, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
export function createConnection(port: number, host?: string, connectionListener?: Function): Socket;
export function createConnection(path: string, connectionListener?: Function): Socket;
export function isIP(input: string): number;
@@ -1481,7 +1481,7 @@ declare module "fs" {
export function readlink(path: string, callback?: (err: NodeJS.ErrnoException, linkString: string) => any): void;
export function readlinkSync(path: string): string;
export function realpath(path: string, callback?: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) =>any): void;
export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
export function realpathSync(path: string, cache?: { [path: string]: string }): string;
/*
* Asynchronous unlink - deletes the file specified in {path}
@@ -1802,7 +1802,7 @@ declare module "path" {
*/
export function format(pathObject: ParsedPath): string;
export module posix {
export namespace posix {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
@@ -1817,7 +1817,7 @@ declare module "path" {
export function format(pP: ParsedPath): string;
}
export module win32 {
export namespace win32 {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(...pathSegments: any[]): string;
@@ -1872,10 +1872,10 @@ declare module "tls" {
host?: string;
port?: number;
socket?: net.Socket;
pfx?: string | Buffer
key?: string | Buffer
pfx?: string | Buffer;
key?: string | Buffer;
passphrase?: string;
cert?: string | Buffer
cert?: string | Buffer;
ca?: (string | Buffer)[];
rejectUnauthorized?: boolean;
NPNProtocols?: (string | Buffer)[];
@@ -1922,7 +1922,7 @@ declare module "tls" {
passphrase?: string;
cert?: string | Buffer;
ca?: string | Buffer;
crl?: string | string[]
crl?: string | string[];
ciphers?: string;
honorCipherOrder?: boolean;
}
@@ -1931,10 +1931,10 @@ declare module "tls" {
context: any;
}
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) =>void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () =>void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) => void ): Server;
export function connect(options: TlsOptions, secureConnectionListener?: () => void ): ClearTextStream;
export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void ): ClearTextStream;
export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
export function createSecureContext(details: SecureContextOptions): SecureContext;
}
@@ -2015,23 +2015,23 @@ declare module "crypto" {
export function getDiffieHellman(group_name: string): DiffieHellman;
export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, callback: (err: Error, derivedKey: Buffer) => any): void;
export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, digest: string, callback: (err: Error, derivedKey: Buffer) => any): void;
export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number) : Buffer;
export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, digest: string) : Buffer;
export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number): Buffer;
export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, digest: string): Buffer;
export function randomBytes(size: number): Buffer;
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) => void ): void;
export function pseudoRandomBytes(size: number): Buffer;
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) => void ): void;
export interface RsaPublicKey {
key: string;
padding?: any;
}
export interface RsaPrivateKey {
key: string;
passphrase?: string,
passphrase?: string;
padding?: any;
}
export function publicEncrypt(public_key: string|RsaPublicKey, buffer: Buffer): Buffer
export function privateDecrypt(private_key: string|RsaPrivateKey, buffer: Buffer): Buffer
export function publicEncrypt(public_key: string|RsaPublicKey, buffer: Buffer): Buffer;
export function privateDecrypt(private_key: string|RsaPrivateKey, buffer: Buffer): Buffer;
}
declare module "stream" {
@@ -2144,7 +2144,7 @@ declare module "util" {
export function isDate(object: any): boolean;
export function isError(object: any): boolean;
export function inherits(constructor: any, superConstructor: any): void;
export function debuglog(key:string): (msg:string,...param: any[])=>void;
export function debuglog(key: string): (msg: string, ...param: any[]) => void;
}
declare module "assert" {