Skip to content

Commit 368eb09

Browse files
committed
🛠 Fixed up return type to include objectpattern type
1 parent c159470 commit 368eb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metadata/serializeType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function createVoidZero() {
1616
* @todo Array and Objects spread are not supported.
1717
* @todo Rest parameters are not supported.
1818
*/
19-
function getTypedNode(param: Parameter): t.Identifier | t.ClassProperty | null {
19+
function getTypedNode(param: Parameter): t.Identifier | t.ClassProperty | t.ObjectPattern | null {
2020
if (param == null) return null;
2121

2222
if (param.type === 'ClassProperty') return param;

0 commit comments

Comments
 (0)