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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user