Skip to content

Commit ea4cba6

Browse files
committed
chore: wip
1 parent 5d17c51 commit ea4cba6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/extract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function extractTypeFromSource(filePath: string): Promise<string> {
3434
declarations += `${declaration}\n\n`
3535

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

4040
// Check for return type

0 commit comments

Comments
 (0)