declare namespace Somatic { enum PropType { html, object, css } } 在另一个文件index.ts 中,我有一个较短的枚举别名: type PropType = Somatic.PropType;
確定! 回上一頁