Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Mar 21, 2023
1 parent 9a83be1 commit a443e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3126,7 +3126,7 @@ export class Converter {
for (const modifier of modifiers) {
if (ts.isDecorator(modifier)) {
// `checkGrammarModifiers` function in typescript
if (!nodeCanBeDecorated(node)) {
if (!nodeCanBeDecorated(node as TSNode)) {
if (ts.isMethodDeclaration(node) && !nodeIsPresent(node.body)) {
this.#throwError(
modifier,
Expand Down

0 comments on commit a443e5c

Please sign in to comment.