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.
Now that this PR has been merged, a new release would be highly appreciated, so that runem/lit-analyzer#278 can be fixed. Perhaps @runem or @rictic can help? :slightly_smiling_face:
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 newgetDecorators
function that returns all decorators existing in either array, if they exist.