There are two ways of specifying modules in TS:
declare module "buffer" {} // with quotes
and
declare module buffer {} // without quotes
The former (with quotes) signifies external module (ES6 module) and is currently used in .d.ts
files to put several ES6 modules in one file:
declare module "buffer" {}
declare module "fs" {}
The latter (without quotes) was used as namespace and is now replaced with
declare namespace buffer {}
So, in this quote:
It’s important to note that in TypeScript 1.5, the nomenclature has
changed. “Internal modules” are now “namespaces”. “External modules”
are now simply “modules”
"Internal modules" are modules without quotes as they were used before 1.5.
See this issue for additional details.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…