From 7a936777173e6507f5132ea72c918ada8ead36c3 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 29 Oct 2024 21:47:11 +0100 Subject: [PATCH] chore: wip --- src/extract.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/extract.ts b/src/extract.ts index a9ae677..09aca9a 100644 --- a/src/extract.ts +++ b/src/extract.ts @@ -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