Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 1, 2024
1 parent 294ee81 commit 4cf18c5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ interface ProcessedMethod {
signature: string
}

function cleanDeclaration(declaration: string): string {
return declaration
.replace(/\r\n/g, '\n') // Normalize line endings
.replace(/\/\*[\s\S]*?\*\//g, '') // Remove multi-line comments
.replace(/\/\/.*/g, '') // Remove single-line comments
.replace(/\s+/g, ' ') // Normalize whitespace
.trim()
}

function cleanParameterTypes(params: string): string {
if (!params.trim())
return ''
Expand Down

0 comments on commit 4cf18c5

Please sign in to comment.