xcatliu/typescript-tutorial

namespace成员访问问题

tomwang1013 opened this issue · 0 comments

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

export namespace foo {
    const name: string;
    namespace bar {
        function baz(): string;
    }
}