powertools-lambda-typescript icon indicating copy to clipboard operation
powertools-lambda-typescript copied to clipboard

Maintenance: add typedoc-plugin-missing-exports plugin to remove missing exports warnings

Open am29d opened this issue 1 year ago • 1 comments

Summary

While cleaning up the api docs in one of the issues of #2381 the typedoc complains about resources that are references but not exported. While we can add them to exports to fix it, I found a better solution to add these missing resources to the doc, without exposing them.

https://github.com/Gerrit0/typedoc-plugin-missing-exports

Also saw, just now that we have this plugin already installed in the package.json, but we did not add it typedoc configuration.

This plugin collects all the missing exports we reference but still don't want to export.

Why is this needed?

So we don't have to export types, classes and functions that are internal just to have them in the API docs.

Which area does this relate to?

Other

Solution

Add https://github.com/Gerrit0/typedoc-plugin-missing-exports plugin your package script npm run docs-generateApiDoc. In addition, I would also revert the changes we have made in the recent PRs to fix the warnings.

Alternatively we can mute those warnings, but the information about the internal interfaces, classes and functions will not be available in the API docs, which I would prefer to have.

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

am29d avatar Aug 29 '24 11:08 am29d

Good find, I agree we should enable it.

It must have been unintentionally dropped when we did the v2 merge (probably my bad).

dreamorosi avatar Aug 29 '24 13:08 dreamorosi

⚠️ COMMENT VISIBILITY WARNING ⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Aug 30 '24 14:08 github-actions[bot]

This is now released under v2.8.0 version!

github-actions[bot] avatar Sep 16 '24 12:09 github-actions[bot]