Skip to content

Commit

Permalink
feat: move readonly modifier after abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
ferchoz committed Nov 28, 2023
1 parent 79fff73 commit b8128f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1208,14 +1208,14 @@ function printClass(path, options, print) {
declaration.push("final ");
}

if (node.isReadonly) {
declaration.push("readonly ");
}

if (node.isAbstract) {
declaration.push("abstract ");
}

if (node.isReadonly) {
declaration.push("readonly ");
}

// `new` print `class` keyword with arguments
declaration.push(isAnonymousClass ? "" : node.kind);

Expand Down

0 comments on commit b8128f5

Please sign in to comment.