@@ -1103,13 +1103,13 @@ function inferTypeFromDefaultValue(defaultValue: string): string {
11031103/**
11041104 * Check if a line is a JSDoc comment
11051105 */
1106- export function isJSDocComment ( line : string ) : boolean {
1106+ function isJSDocComment ( line : string ) : boolean {
11071107 const trimmed = line . trim ( )
11081108 const isJsDoc = trimmed . startsWith ( '/**' ) || trimmed . startsWith ( '*' ) || trimmed . startsWith ( '*/' )
11091109 return isJsDoc
11101110}
11111111
1112- export function isDefaultExport ( line : string ) : boolean {
1112+ function isDefaultExport ( line : string ) : boolean {
11131113 // Handle both inline and multi-line default exports
11141114 return line . trim ( ) . startsWith ( 'export default' )
11151115}
@@ -1532,7 +1532,7 @@ function processTypeBlock(cleanDeclaration: string, declarationText: string, sta
15321532}
15331533
15341534function processDefaultExportBlock ( cleanDeclaration : string , state : ProcessingState ) : boolean {
1535- if ( ! cleanDeclaration . startsWith ( 'export default' ) )
1535+ if ( ! isDefaultExport ( cleanDeclaration ) )
15361536 return false
15371537
15381538 const exportedValue = cleanDeclaration . replace ( / ^ e x p o r t \s + d e f a u l t \s + / , '' ) . replace ( / ; $ / , '' )
@@ -1654,7 +1654,7 @@ function processModuleBlock(cleanDeclaration: string, declarationText: string, s
16541654export function processSpecificDeclaration ( declarationWithoutComments : string , fullDeclaration : string , state : ProcessingState ) : void {
16551655 // debugLog('processing', `Processing declaration: ${declarationWithoutComments.substring(0, 100)}...`)
16561656
1657- if ( declarationWithoutComments . startsWith ( 'export default' ) ) {
1657+ if ( isDefaultExport ( declarationWithoutComments ) ) {
16581658 // debugLog('default-export', `Found default export: ${declarationWithoutComments}`)
16591659
16601660 // Store the complete default export statement
0 commit comments