DefinitelyTyped

Index

Variables

Dynamic modules

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: 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: Process

                                          *
              GLOBAL                      *
                                          *

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

(): any

Returns

any

public require.cache: any

public require.extensions: any

public require.main: any

public resolve(): string

Returns

string

.id.id: string

Functions

clearImmediate(immediateId: any)

Parameters

  • immediateId: any

clearInterval(intervalId: Timer)

Parameters

clearTimeout(timeoutId: Timer)

Parameters

setImmediate(callback: (...args: any[]) => void, args?: Array<any>): any

Parameters

  • callback: (...args: any[]) => void
  • args?: Array<any> optional

Returns

any

setInterval(callback: (...args: any[]) => void, ms: number, args?: Array<any>): Timer

Parameters

  • callback: (...args: any[]) => void
  • ms: number
  • args?: Array<any> optional

Returns

Timer

setTimeout(callback: (...args: any[]) => void, ms: number, args?: Array<any>): Timer

Parameters

  • callback: (...args: any[]) => void
  • ms: number
  • args?: Array<any> optional

Returns

Timer