我在子模块的某个地方声明了一个枚举,我想在我的实际项目中重新导出它。模块: TOTO = "toto",}import { name } from "module"
export typecase name2.toto: // 'name2' only refers to a type, but is being use
我在我的typescript项目中使用了lodash,其中包含了lodash的类型。此外,我还有一些私有的npm模块和我在不同项目中使用的util。它像这样导出方法:export * from 'utils';
export * from '.但问题是,类型脚本编译器给我一个错误,即/files/@foo&