Fix TypeDoc warnings for referenced but unexported types#1344
Merged
Conversation
Contributor
size-limit report 📦
|
commit: |
Co-authored-by: neet <19276905+neet@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix referenced files not included in typedoc documentation
Fix TypeDoc warnings for referenced but unexported types
Oct 31, 2025
neet
approved these changes
Oct 31, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds the typedoc-plugin-missing-exports plugin to the project's TypeDoc configuration to improve documentation coverage by including missing exports.
- Added
typedoc-plugin-missing-exportspackage as a dev dependency - Configured the plugin in
tsconfig.jsonTypeDoc options - Added
excludeExternalsoption to prevent external dependencies from being documented
Reviewed Changes
Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Added typedoc-plugin-missing-exports v4.1.2 as a dev dependency |
| package-lock.json | Lockfile update for the new plugin dependency with peer dependency on typedoc ^0.28.1 |
| tsconfig.json | Added plugin configuration and excludeExternals option to TypeDoc settings |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Owner
|
Closes #1241 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TypeDoc generated 47 warnings, with 31 "referenced but not included in the documentation" warnings for internal types like
BaseCreateTokenParams,BaseEvent,AccountWarning, etc. These types were used by exported APIs but not documented.Changes
typedoc-plugin-missing-exportsto automatically include referenced internal types in documentationexcludeExternals: trueto filter out Node.js built-in typestsconfig.json:
Result
<internal>moduleNote
The issue mentioned
--treatWarningsAsErrorsworking in TypeDoc 0.26.11, but this flag causes build failures in 0.28.14. The plugin approach is the proper solution for this version.Original prompt
This section details on the original issue you should resolve
<issue_title>typedoc: referenced files "not included in the documentation"</issue_title>
<issue_description>A lot of files don't get included in the document generation by typedoc.