// Type definitions for non-npm package Node.js 13.1 // 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 // Mohsen Azimi // Nicolas Even // Nicolas Voigt // Nikita Galkin // Parambir Singh // Sebastian Silbermann // Simon Schick // Thomas den Hollander // Wilco Bakker // wwwy3y3 // Zane Hannan AU // Samuel Ainsworth // Kyle Uehlein // Jordi Oliveras Rovira // Thanik Bhongbhibhat // Marcin Kopacz // Trivikram Kamat // Minh Son Nguyen // Junxiao Shi // Ilia Baryshnikov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // NOTE: These definitions support NodeJS and TypeScript 3.2. // 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.8 // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 // NOTE: Augmentations for TypeScript 3.2 and later should use individual files for overrides // within the respective ~/ts3.2 (or later) folder. However, this is disallowed for versions // prior to TypeScript 3.2, so the older definitions will be found here. // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: /// // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`) // Empty interfaces are used here which merge fine with the real declarations in the lib XXX files // just to ensure the names are known and node typings can be used without importing these libs. // if someone really needs these types the libs need to be added via --lib or in tsconfig.json interface AsyncIterable { } interface IterableIterator { } interface AsyncIterableIterator {} interface SymbolConstructor { readonly asyncIterator: symbol; } declare var Symbol: SymbolConstructor; // even this is just a forward declaration some properties are added otherwise // it would be allowed to pass anything to e.g. Buffer.from() interface SharedArrayBuffer { readonly byteLength: number; slice(begin?: number, end?: number): SharedArrayBuffer; } declare module "util" { namespace types { function isBigInt64Array(value: any): boolean; function isBigUint64Array(value: any): boolean; } }