有人能帮我理解命名空间和模块的区别吗?
AWS.d.ts
declare module AWS {
...
...
}
export = AWS
helper.d.ts
export declare namespace Helpers{
...
...
}
app.component.d.ts
import {Helpers} from 'mystartup_commons'; //<= works fine
import {AWS} from 'aws-sdk';
错误:
在 /Users/ishandutta2007/Documents/Projects/myproj/src/app/app.component.ts (1,9) 中出现错误:模块 "/Users/ishandutta2007/Documents/Projects/myproj/node_modules/aws-sdk/typings/AWS" 没有导出成员 "AWS"。