Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace成员访问问题 #193

Open
tomwang1013 opened this issue Oct 10, 2020 · 0 comments
Open

namespace成员访问问题 #193

tomwang1013 opened this issue Oct 10, 2020 · 0 comments

Comments

@tomwang1013
Copy link

我看一些文章说namespace中的成员要加上export关键字才能被外界访问到,好像这个教程中没有加,也没有提到这一点。是否是错误呢?

export namespace foo {
    const name: string;
    namespace bar {
        function baz(): string;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant