Skip to content

模块暴露出错 #30

Open
Open
@chen-ziwen

Description

@chen-ziwen

源码暴露使用 exports.default = Client;
导入的时候使用 import alimt20181012, * as $alimt20181012 from '@alicloud/alimt20181012';
然后案例中把alimt20181012当成类去使用,但是它实际上是一个模块对象,alimt20181012.default才是真正的类,现在问题就是typescript识别不到alimt20181012.default,它把alimt20181012当成了类。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions