Triple-slash directives
Triple-slash directives are single-line comments containing a single XML tag. The contents of the comment are used as compiler directives.
Triple-slash directives are only valid at the top of their containing file.Triple-slash directives are single-line comments containing a single XML tag. The contents of the comment are used as compiler directives.
Triple-slash directives are only valid at the top of their containing file.
///
Similar to a ///
For example, including ///
///
This directive allows a file to explicitly include an existing built-in lib file.
Built-in lib files are referenced in the same fashion as the lib compiler option in tsconfig.json (e.g. use lib=“es2015” and not lib=“lib.es2015.d.ts”, etc.).
For example, adding ///
/// <reference lib="es2017.string" />
"foo".padStart(4);
///
The ///
Triple-slash references instruct the compiler to include additional files in the compilation process.