Follow-up on initial TS4 catch param support (#11767)

* refactor: align with AST shape convention

* feat: print catch param type annotations

* test: add test case on transform
This commit is contained in:
Huáng Jùnliàng
2020-06-30 16:42:15 -04:00
parent 8a1d7e41f2
commit 9e6663f125
8 changed files with 43 additions and 25 deletions

View File

@@ -2666,7 +2666,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
const type = this.tsTryParseTypeAnnotation();
if (type) {
param.type = type;
param.typeAnnotation = type;
}
return param;