web-component-analyzer icon indicating copy to clipboard operation
web-component-analyzer copied to clipboard

Support for TypeScript 4.8 decorator AST changes

Open bicknellr opened this issue 1 year ago • 0 comments

This PR adds TypeScript 4.8 to the set of TypeScript versions that are tested. TypeScript 4.8 has a breaking change to the AST where the .decorators property has been deprecated and decorators are now found in the .modifiers property.^1 This PR introduces a new getDecorators function that returns all decorators existing in either array, if they exist.

bicknellr avatar Oct 14 '22 23:10 bicknellr