Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds automated API documentation via TypeDoc and surfaces key configuration and retry types from the main package entrypoint to improve DX.
Changes:
- Introduced a
typedoc.jsonconfiguration and adocsnpm script to generate API reference documentation into adocs/folder. - Added
typedocas a dev dependency and updated.gitignoreto exclude generated docs from version control. - Updated
src/index.tsto re-exportValidationResultandRetryOptionsso consumers can import these types directly from the package root, and updatedREADME.md/CLAUDE.mdwith usage instructions.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
typedoc.json |
Adds TypeDoc configuration targeting src/index.ts, outputting HTML docs to ./docs with project metadata and GitHub navigation link. |
src/index.ts |
Extends root exports to include ValidationResult from config and RetryOptions from retry, making these types available from the main entrypoint without changing runtime behavior. |
package.json |
Adds a docs npm script that runs typedoc and registers typedoc@^0.28.16 as a dev dependency, enabling local doc generation. |
package-lock.json |
Locks the dependency graph for typedoc and its transitive dependencies to ensure reproducible documentation builds. |
README.md |
Documents the new npm run docs command and explains where generated documentation is written and how to view it. |
CLAUDE.md |
Mirrors the new npm run docs workflow in the contributor-/automation-focused documentation. |
.gitignore |
Excludes the generated docs/ directory from version control to keep the repository clean from build artifacts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
This pull request adds automated API documentation generation using TypeDoc and improves the visibility and accessibility of type exports from the main entry point. The most important changes are grouped below:
API Documentation Generation:
docsscript topackage.jsonthat runs TypeDoc to generate API documentation.typedocas a development dependency inpackage.json.typedoc.jsonconfiguration file to customize TypeDoc output and documentation settings.README.mdandCLAUDE.mdto document the newnpm run docscommand and explain how to view the generated documentation. [1] [2]Type Exports:
src/index.tsto re-exportValidationResultandRetryOptionstypes, making them accessible from the package's main entry point.