Within a module, which only exports one class, the easiest syntax to use is as follows:
export default class Foo {
}
However, it seems this could be incompatible with class decorators. Would the following work?
@dec
export default class Foo {
}
Or would you have to do:
@dec
class Foo {
}
export default Foo
Within a module, which only exports one class, the easiest syntax to use is as follows:
However, it seems this could be incompatible with class decorators. Would the following work?
Or would you have to do: