@@ -351,7 +351,7 @@ function convertTypeAlias(
351351 if ( ts . isTypeAliasDeclaration ( declaration ) ) {
352352 const comment = context . getComment ( symbol , ReflectionKind . TypeAlias ) ;
353353
354- if ( comment ?. hasModifier ( "@alias " ) ) {
354+ if ( comment ?. hasModifier ( "@reexport " ) ) {
355355 if ( ts . isTypeReferenceNode ( declaration . type ) ) {
356356 // Note: Get the symbol from the typeName here, NOT the type! The type refers to this alias,
357357 // not the type alias we want to convert.
@@ -362,12 +362,15 @@ function convertTypeAlias(
362362 return ;
363363 } else {
364364 context . logger . warn (
365- i18n . failed_to_convert_0_as_alias ( exportSymbol ?. name ?? symbol . name ) ,
365+ i18n . failed_to_convert_0_as_reexport ( exportSymbol ?. name ?? symbol . name ) ,
366366 declaration ,
367367 ) ;
368368 }
369369 } else {
370- context . logger . warn ( i18n . failed_to_convert_0_as_alias ( exportSymbol ?. name ?? symbol . name ) , declaration ) ;
370+ context . logger . warn (
371+ i18n . failed_to_convert_0_as_reexport ( exportSymbol ?. name ?? symbol . name ) ,
372+ declaration ,
373+ ) ;
371374 }
372375 }
373376
@@ -1023,7 +1026,7 @@ function convertVariable(
10231026 ? context . checker . getTypeOfSymbolAtLocation ( symbol , declaration )
10241027 : context . checker . getTypeOfSymbol ( symbol ) ;
10251028
1026- if ( comment ?. hasModifier ( "@alias " ) ) {
1029+ if ( comment ?. hasModifier ( "@reexport " ) ) {
10271030 if (
10281031 declaration && ts . isVariableDeclaration ( declaration ) && declaration . initializer &&
10291032 ( ts . isIdentifier ( declaration . initializer ) || ts . isPropertyAccessExpression ( declaration . initializer ) )
@@ -1032,7 +1035,7 @@ function convertVariable(
10321035 convertSymbol ( context , aliasedSymbol , exportSymbol || symbol ) ;
10331036 return ts . SymbolFlags . Property | ts . SymbolFlags . ValueModule | ts . SymbolFlags . TypeAlias ;
10341037 } else {
1035- context . logger . warn ( i18n . failed_to_convert_0_as_alias ( exportSymbol ?. name ?? symbol . name ) , declaration ) ;
1038+ context . logger . warn ( i18n . failed_to_convert_0_as_reexport ( exportSymbol ?. name ?? symbol . name ) , declaration ) ;
10361039 }
10371040 }
10381041
0 commit comments