我需要IObservable接口但是当我在这里使用import时,命名空间不起作用。如何正确导入此界面?
// interfaces.d.ts
import { IObservable, IObservableArray } from 'mobx';
namespace TS {
export interface DefaultObject {
[key: string]: Object;
}
export namespace deviceModel {
export interface Device<T> {
isRefreshing :Object,
topLineProgress :Object,
appState :Object,
connection :Object,
orientation :IObservableArray<T>
}
}
export namespace promoModel {
export interface promoData {
status: string
}
}
}
&#13;
// someModule.tsx
let props:TS.DefaultObject = { };
&#13;