Skip to content

Commit c159470

Browse files
authored
Return param when using argument destructing
The type information is the same as plain identifiers
1 parent 775caf3 commit c159470

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/metadata/serializeType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function getTypedNode(param: Parameter): t.Identifier | t.ClassProperty | null {
2121

2222
if (param.type === 'ClassProperty') return param;
2323
if (param.type === 'Identifier') return param;
24+
if (param.type === 'ObjectPattern') return param;
2425

2526
if (param.type === 'AssignmentPattern' && param.left.type === 'Identifier')
2627
return param.left;

0 commit comments

Comments
 (0)