📜  typescript 三斜杠 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:15.250000             🧑  作者: Mango

代码示例1
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 references instruct the compiler to include additional files in the compilation process.
/// 

For example, adding a lib="es2017.string" directive to one of the files in a compilation is equivalent to compiling with --lib es2017.string.
/// 
"foo".padStart(4);