We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678956f commit 8274082Copy full SHA for 8274082
src/index.ts
@@ -481,7 +481,7 @@ export function tsPlugin(options?: {
481
482
return super.parseArrowExpression(
483
res,
484
- /* params are already set */ res.params,
+ /* params are already set */ null,
485
/* async */ true,
486
/* forInit */ forInit
487
);
@@ -3228,11 +3228,9 @@ export function tsPlugin(options?: {
3228
return node.expression;
3229
}
3230
3231
- toAssignableList(exprList: any[], isBinding: boolean): any {
3232
- if (!exprList) {
3233
- return exprList;
3234
- }
3235
-
+ toAssignableList(exprList: any[] | null, isBinding: boolean): any {
+ if (!exprList) exprList = [];
+
3236
for (let i = 0; i < exprList.length; i++) {
3237
const expr = exprList[i];
3238
0 commit comments