Skip to content

Commit 7a93677

Browse files
committed
chore: wip
1 parent eb80c40 commit 7a93677

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/extract.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,14 @@ function processSpecificDeclaration(
717717
return
718718
}
719719

720-
if (
721-
declarationWithoutComments.startsWith('export {')
722-
|| declarationWithoutComments.startsWith('export *')
723-
) {
720+
if (declarationWithoutComments.startsWith('export *')) {
721+
state.exportAllStatements.push(declarationWithoutComments)
722+
debugLog(state, 'export-all-declaration', `Found export all declaration: ${declarationWithoutComments}`)
723+
state.dtsLines.push(fullDeclaration)
724+
return
725+
}
726+
727+
if (declarationWithoutComments.startsWith('export {')) {
724728
debugLog(state, 'export-declaration', `Found export declaration: ${declarationWithoutComments}`)
725729
state.dtsLines.push(fullDeclaration)
726730
return

0 commit comments

Comments
 (0)