Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 29, 2024
1 parent eb80c40 commit 7a93677
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,14 @@ function processSpecificDeclaration(
return
}

if (
declarationWithoutComments.startsWith('export {')
|| declarationWithoutComments.startsWith('export *')
) {
if (declarationWithoutComments.startsWith('export *')) {
state.exportAllStatements.push(declarationWithoutComments)
debugLog(state, 'export-all-declaration', `Found export all declaration: ${declarationWithoutComments}`)
state.dtsLines.push(fullDeclaration)
return
}

if (declarationWithoutComments.startsWith('export {')) {
debugLog(state, 'export-declaration', `Found export declaration: ${declarationWithoutComments}`)
state.dtsLines.push(fullDeclaration)
return
Expand Down

0 comments on commit 7a93677

Please sign in to comment.