Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 22, 2024
1 parent ab7b1e3 commit e8f52a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function processFunctionDeclaration(declaration: string, usedTypes: Set<string>,
// Fix invalid ending `):;` to `;`
const result = `${isExported ? 'export ' : ''}declare ${asyncKeyword}function ${functionName}(${params}): ${returnType};`
logDebug(`Processed function declaration: ${result}`)
return result
return result.replace('function function', 'function')
}

function getReturnType(functionSignature: string): string {
Expand Down

0 comments on commit e8f52a9

Please sign in to comment.