We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b87a9b commit 6c9e509Copy full SHA for 6c9e509
1 file changed
src/extract.ts
@@ -672,6 +672,7 @@ export function parseFunctionDeclaration(declaration: string): FunctionParseStat
672
}
673
674
// Extract return type, handling Promise types correctly
675
+ // eslint-disable-next-line regexp/no-super-linear-backtracking
676
const returnMatch = cleanDeclaration.match(/^:\s*(.+?)(?:$|\{)/)
677
if (returnMatch) {
678
let returnType = returnMatch[1].trim()
0 commit comments