Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 23, 2024
1 parent 2b87a9b commit 6c9e509
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ export function parseFunctionDeclaration(declaration: string): FunctionParseStat
}

// Extract return type, handling Promise types correctly
// eslint-disable-next-line regexp/no-super-linear-backtracking
const returnMatch = cleanDeclaration.match(/^:\s*(.+?)(?:$|\{)/)
if (returnMatch) {
let returnType = returnMatch[1].trim()
Expand Down

0 comments on commit 6c9e509

Please sign in to comment.