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 5d17c51 commit ea4cba6Copy full SHA for ea4cba6
1 file changed
src/extract.ts
@@ -34,7 +34,7 @@ export async function extractTypeFromSource(filePath: string): Promise<string> {
34
declarations += `${declaration}\n\n`
35
36
// Check for types used in parameters
37
- const paramTypes = params.match(/:\s*([^,)]+)/g) || []
+ const paramTypes = params.match(/:\s*([^,)=]+)/g) || []
38
paramTypes.forEach(type => addUsedType(type.slice(1).trim()))
39
40
// Check for return type
0 commit comments