DefinitelyTyped

Index

Variables

Dynamic modules

Interfaces

Functions

Variables

SlowBuffer: { prototype: Buffer; isBuffer(obj: any): boolean; byteLength(string: string, encoding?: string): number; concat(list: Buffer[], totalLength?: number): Buffer; new(str: string, encoding?: string): Buffer; new(size: number): Buffer; new(array: any[]): Buffer; }

constructor(): Buffer

Returns

Buffer

constructor(): Buffer

Returns

Buffer

constructor(): Buffer

Returns

Buffer

public SlowBuffer.prototype: Buffer

public byteLength(): number

Returns

number

optional .encoding.encoding?: string

.string.string: string

public concat(): Buffer

Returns

Buffer

.list.list: Array<Buffer>

optional .totalLength.totalLength?: number

public isBuffer(): boolean

Returns

boolean

.obj.obj: any

__dirname: string

__filename: string

exports: any

global: any

module: { exports: any; require(id: string): any; id: string; filename: string; loaded: boolean; parent: any; children: any[]; }

public module.children: Array<any>

public module.exports: any

public module.filename: string

public module.id: string

public module.loaded: boolean

public module.parent: any

public require(): any

Returns

any

.id.id: string

process: NodeProcess

                                          *
              GLOBAL                      *
                                          *

require: { resolve(): string; cache: any; extensions: any; (id: string): any; }

(): any

Returns

any

public require.cache: any

public require.extensions: any

public resolve(): string

Returns

string

Functions

clearInterval(intervalId: any): any

Parameters

  • intervalId: any

Returns

any

clearTimeout(timeoutId: any): any

Parameters

  • timeoutId: any

Returns

any

setInterval(callback: () => void, ms: number): any

Parameters

  • callback: () => void
  • ms: number

Returns

any

setTimeout(callback: () => void, ms: number): any

Parameters

  • callback: () => void
  • ms: number

Returns

any