Maintenance: fix typedoc-plugin-zod
usage
#2923
Labels
completed
This item is complete and has been merged/shipped
documentation
Improvements or additions to documentation
internal
PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
parser
This item relates to the Parser Utility
Summary
Currently we are using a Typedoc plugin called
typedoc-plugin-zod
which is expected to prettify the Zod schemas in our TypeDoc API docs.This is working well enough, however when building the docs the plugin is causing thousands of warnings:
I was able to confirm that the plugin is the source of the warnings because commenting it out in the main
typedoc.json
config makes all the warnings immediately disappear.We should investigate if this is: 1/ a bug with the plugin, 2/ a misconfiguration on our part, or 3/ a misuse of our typedoc annotations that causes the warnings.
Why is this needed?
So that we don't have thousands of warnings when generating the API docs.
Which area does this relate to?
Parser
Solution
In case of 2/ or 3/, we should fix it, in case of 1/ ideally we should open an issue on the plugin's repo to get it fixed. If none of the above is a viable option, we should look at alternatives or removing the plugin entirely.
The good thing is that the plugin is from the same author as Typedoc itself, so unless it's an issue with Zod itself I'm confident there will be a solution.
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: