Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kunli2 committed Nov 28, 2023
1 parent 9f948e0 commit 6f9419e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public J visitTypeOperator(JS.TypeOperator typeOperator, PrintOutputCapture<P> p
String keyword = "";
if (typeOperator.getOperator() == JS.TypeOperator.Type.ReadOnly) {
keyword = "readonly";
} else if (typeOperator.getOperator() == JS.TypeOperator.Type.Keyof) {
} else if (typeOperator.getOperator() == JS.TypeOperator.Type.KeyOf) {
keyword = "keyof";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2335,7 +2335,7 @@ private JS.TypeOperator visitTypeOperator(TSCNode node) {
operator = JS.TypeOperator.Type.ReadOnly;
} else if (op == TSCSyntaxKind.KeyOfKeyword) {
before = sourceBefore(TSCSyntaxKind.KeyOfKeyword);
operator = JS.TypeOperator.Type.Keyof;
operator = JS.TypeOperator.Type.KeyOf;
} else {
implementMe(node);
}
Expand Down

0 comments on commit 6f9419e

Please sign in to comment.