Merge namespace with imported class

后端 未结 0 1413
春和景丽
春和景丽 2021-01-07 07:51

In TypeScript you can merge a class and a namespace like this:

foo.ts:

class Foo {
  foo() {}
}

namespace Foo {
  export const ANSWER = 42;
}

export          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题