File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/transform/src/transformers Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1004,7 +1004,7 @@ export class V13ToV14Transformer {
10041004 const typeName = argType . names [ argType . names . length - 1 ] ;
10051005 if ( typeName && typeName . String && typeName . String . str ) {
10061006 const typeStr = typeName . String . str . toLowerCase ( ) ;
1007- return typeStr === 'variadic ' ;
1007+ return typeStr === 'anyarray ' ;
10081008 }
10091009 }
10101010
@@ -1030,11 +1030,9 @@ export class V13ToV14Transformer {
10301030 }
10311031
10321032 if ( node . mode !== undefined ) {
1033- if ( node . mode . toString ( ) === "FUNC_PARAM_DEFAULT" ) {
1034- // Check if this should be FUNC_PARAM_VARIADIC based on context
1035- const isVariadicType = this . isVariadicParameterType ( node . argType ) ;
1036- result . mode = isVariadicType ? "FUNC_PARAM_VARIADIC" : "FUNC_PARAM_DEFAULT" ;
1037- } else if ( node . mode . toString ( ) === "FUNC_PARAM_IN" ) {
1033+ if ( node . mode === "FUNC_PARAM_VARIADIC" ) {
1034+ result . mode = "FUNC_PARAM_DEFAULT" ;
1035+ } else if ( node . mode === "FUNC_PARAM_IN" ) {
10381036 result . mode = "FUNC_PARAM_DEFAULT" ;
10391037 } else {
10401038 result . mode = node . mode ;
You can’t perform that action at this time.
0 commit comments