Open gaggarwal-patreon opened 1 year ago
PR #660 has had this ready to go for two years. This really needs to be merged, as there's no shortage of angular code that makes use of class decorators.
I'll add that right now ChatGPT is generating jscodeshift codemods that rely on this functionality being present.
You can find the definition of
ClassDeclaration
here. Note that there doesn't exist a field fordecorators
even though it exists for several other nodes such asClassAccessorProperty
andClassMethod
.However, it is possible to have a class decorator such as the following:
In this case, the
decorators
field does exist onClassDeclaration
. Can we update the types to reflect this?