File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/transformation/visitors/helpers Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11declare 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 } ;
Original file line number Diff line number Diff 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
2524function isMultiHelperCallSignature ( context : TransformationContext , expression : ts . CallExpression ) : boolean {
2625 const type = context . checker . getTypeAtLocation ( expression . expression ) ;
You can’t perform that action at this time.
0 commit comments