Does TypeScript support namespace?

后端 未结 5 964
无人共我
无人共我 2021-02-02 05:47

As in the title: does TypeScript support namespaces? If so, how do I use them?

5条回答
  •  伪装坚强ぢ
    2021-02-02 06:21

    There is no 'namespace' keyword, but internal modules (using the 'module' keyword) and external modules (using the 'export' keyword) offer a similar way to partition your code into logical hierarchies.

提交回复
热议问题