Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 17, 2024
1 parent 5d17c51 commit ea4cba6
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 @@ -34,7 +34,7 @@ export async function extractTypeFromSource(filePath: string): Promise<string> {
declarations += `${declaration}\n\n`

// Check for types used in parameters
const paramTypes = params.match(/:\s*([^,)]+)/g) || []
const paramTypes = params.match(/:\s*([^,)=]+)/g) || []
paramTypes.forEach(type => addUsedType(type.slice(1).trim()))

// Check for return type
Expand Down

0 comments on commit ea4cba6

Please sign in to comment.