Skip to content

Commit 1bec824

Browse files
authored
Revert "print as instead of colon for babel-ts parser" (#12995)
This reverts commit f491141. ; Conflicts: ; src/language-js/print/misc.js
1 parent 2316e2f commit 1bec824

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/language-js/print/misc.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ function printTypeAnnotation(path, options, print) {
5555

5656
const parentNode = path.getParentNode();
5757

58-
// Workaround for https://github.com/babel/babel/issues/14498
59-
if (parentNode.type === "ArrayPattern" && options.parser === "babel-ts") {
60-
return [" as ", print("typeAnnotation")];
61-
}
62-
6358
const isFunctionDeclarationIdentifier =
6459
parentNode.type === "DeclareFunction" && parentNode.id === node;
6560

0 commit comments

Comments
 (0)