ClassDeclaration type is missing decorators
gaggarwal-patreon opened this issue · comments
Gavy commented
You can find the definition of ClassDeclaration
here. Note that there doesn't exist a field for decorators
even though it exists for several other nodes such as ClassAccessorProperty
and ClassMethod
.
However, it is possible to have a class decorator such as the following:
@sealed
class BugReport {
type = "report";
title: string;
constructor(t: string) {
this.title = t;
}
}
In this case, the decorators
field does exist on ClassDeclaration
. Can we update the types to reflect this?