Skip to content

Commit

Permalink
Add handling case for unknown types generated by typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyi45 committed Mar 21, 2024
1 parent e78495f commit 86a00be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/src/build/docs/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ async function buildJson(name: string, reflection: td.DeclarationReflection, out
const parser = parsers[element.kind];
return {
...res,
[element.name]: parser ? parser(element) : {}
[element.name]: parser
? parser(element)
: { kind: 'unknown' }
};
}, {});

Expand Down

0 comments on commit 86a00be

Please sign in to comment.