X Tutup
Skip to content

Commit 19b735c

Browse files
committed
Fix esnext target error
1 parent 8b13adb commit 19b735c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

helpers/multi.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
declare function $multi<T extends any[]>(...values: T): MultiReturn<T>;
2-
declare type MultiReturn<T extends any[]> = T & [] & { readonly " __multiBrand": unique symbol };
2+
declare type MultiReturn<T extends any[]> = T & { readonly " __multiBrand": unique symbol };

src/transformation/visitors/helpers/multi.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ import {
1818
unsupportedMultiHelperFunctionPosition,
1919
} from "../../../transformation/utils/diagnostics";
2020

21-
const isMultiHelperDeclaration = (context: TransformationContext) => (declaration: ts.Declaration): boolean => {
22-
return helpers.getHelperFileKind(context, declaration.getSourceFile()) === helpers.HelperKind.Multi;
23-
};
21+
const isMultiHelperDeclaration = (context: TransformationContext) => (declaration: ts.Declaration): boolean =>
22+
helpers.getHelperFileKind(context, declaration.getSourceFile()) === helpers.HelperKind.Multi;
2423

2524
function isMultiHelperCallSignature(context: TransformationContext, expression: ts.CallExpression): boolean {
2625
const type = context.checker.getTypeAtLocation(expression.expression);

0 commit comments

Comments
 (0)
X Tutup