// Type definitions for non-npm package Node.js 14.6 // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript // DefinitelyTyped // Alberto Schiabel // Alexander T. // Alvis HT Tang // Andrew Makarov // Benjamin Toueg // Bruno Scheufler // Chigozirim C. // 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 // Nikita Galkin // Parambir Singh // Sebastian Silbermann // Simon Schick // Thomas den Hollander // Wilco Bakker // wwwy3y3 // Samuel Ainsworth // Kyle Uehlein // Jordi Oliveras Rovira // Thanik Bhongbhibhat // Marcin Kopacz // Trivikram Kamat // Minh Son Nguyen // Junxiao Shi // Ilia Baryshnikov // ExE Boss // Surasak Chaisurin // Piotr Błażejewicz // Anna Henningsen // Jason Kwok // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // NOTE: These definitions support NodeJS and TypeScript 3.5. // 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.5/index.d.ts - Definitions specific to TypeScript 3.5 // NOTE: Augmentations for TypeScript 3.5 and later should use individual files for overrides // within the respective ~/ts3.5 (or later) folder. However, this is disallowed for versions // prior to TypeScript 3.5, so the older definitions will be found here. // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: /// // We can't include globals.global.d.ts in globals.d.ts, as it'll cause duplication errors in TypeScript 3.5+ /// // We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in TypeScript 3.7+ /// // 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; } }