Skip to content

Commit

Permalink
Revert "print as instead of colon for babel-ts parser" (#12995)
Browse files Browse the repository at this point in the history
This reverts commit f491141.

; Conflicts:
;	src/language-js/print/misc.js
  • Loading branch information
HosokawaR committed Jun 12, 2022
1 parent 2316e2f commit 1bec824
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/language-js/print/misc.js
Expand Up @@ -55,11 +55,6 @@ function printTypeAnnotation(path, options, print) {

const parentNode = path.getParentNode();

// Workaround for https://github.com/babel/babel/issues/14498
if (parentNode.type === "ArrayPattern" && options.parser === "babel-ts") {
return [" as ", print("typeAnnotation")];
}

const isFunctionDeclarationIdentifier =
parentNode.type === "DeclareFunction" && parentNode.id === node;

Expand Down

0 comments on commit 1bec824

Please sign in to comment.