Skip to content

Commit e7d9d4f

Browse files
committed
chore: wip
1 parent 1511b1a commit e7d9d4f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/extract.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function extractFunctionSignature(declaration: string): FunctionSignature {
203203
debugLog(undefined, 'signature-after-params', `Remaining content: ${rest}`)
204204

205205
// Extract return type
206-
const { returnType } = extractReturnType(rest, cleanDeclaration)
206+
const { returnType } = extractReturnType(rest)
207207
debugLog(undefined, 'signature-return', `Extracted return type: ${returnType}`)
208208

209209
const signature = {
@@ -710,8 +710,9 @@ function createImportTrackingState(): ImportTrackingState {
710710
valueAliases: new Map(),
711711
usedTypes: new Set(),
712712
usedValues: new Set(),
713-
exportedValues: null,
714-
defaultExportValue: null,
713+
exportedValues: new Set(),
714+
importSources: new Map(),
715+
defaultExportValue: undefined,
715716
}
716717
}
717718

0 commit comments

Comments
 (0)