// Type definitions for Node.js 11.9 // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript // DefinitelyTyped // Alberto Schiabel // Alexander T. // Alvis HT Tang // Andrew Makarov // Benjamin Toueg // Bruno Scheufler // Chigozirim C. // Christian Vaagland Tellnes // David Junger // Deividas Bakanas // Eugene Y. Q. Shen // Flarna // Hannes Magnusson // Hoàng Văn Khải // Huw // Kelvin Jin // Klaus Meinhardt // Lishude // Mariusz Wiktorczyk // Matthieu Sieben // Mohsen Azimi // Nicolas Even // Nicolas Voigt // Parambir Singh // Sebastian Silbermann // Simon Schick // Thomas den Hollander // Wilco Bakker // wwwy3y3 // Zane Hannan AU // Jeremie Rodriguez // Samuel Ainsworth // Kyle Uehlein // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // NOTE: These definitions support NodeJS and TypeScript 3.1. // NOTE: TypeScript version-specific augmentations can be found in the following paths: // - ~/base.d.ts - Shared definitions common to all TypeScript versions // - ~/index.d.ts - Definitions specific to TypeScript 2.1 // - ~/ts3.1/index.d.ts - Definitions specific to TypeScript 3.1 // NOTE: Augmentations for TypeScript 3.1 and later should use individual files for overrides // within the respective ~/ts3.1 (or later) folder. However, this is disallowed for versions // prior to TypeScript 3.1, so the older definitions will be found here. // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: /// // TypeScript 2.1-specific augmentations: // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`) interface MapConstructor { } interface WeakMapConstructor { } interface SetConstructor { } interface WeakSetConstructor { } interface Set {} interface ReadonlySet {} interface IteratorResult { } interface Iterable { } interface Iterator { next(value?: any): IteratorResult; } interface IterableIterator { } interface AsyncIterableIterator {} interface SymbolConstructor { readonly iterator: symbol; readonly asyncIterator: symbol; } declare var Symbol: SymbolConstructor; declare class SharedArrayBuffer { constructor(byteSize: number); readonly byteLength: number; slice(begin?: number, end?: number): SharedArrayBuffer; } declare module "util" { namespace inspect { const custom: symbol; } namespace promisify { const custom: symbol; } }