7
我有一个环境.d.ts
模块,直接依赖于不可变:如何将环境模块声明包含在另一个环境模块中?
error TS2435: Ambient external modules cannot be nested in other modules.
我怎么能有不可改变的:
/// <reference path="../node_modules/immutable/dist/immutable.d.ts" />
import I = require('immutable');
declare module 'morearty' {
}
但引用不可改变的,直接由与此错误的编译器禁止我的环境模块内的环境声明?我试图从另一个代理模块导入不可变的,但没有运气。
很多感谢的,basarat!它只是工作! – bme
非常感谢你!我有一个与自定义环境模块类似的问题,并拉出我的头发! – marvinhagemeister