Skip to content

docs: document the public API as TSDoc (generated from type declarations) - #4

Open
lucas-tortora wants to merge 5 commits into
holepunchto:mainfrom
lucas-tortora:chore/ts-doc
Open

docs: document the public API as TSDoc (generated from type declarations)#4
lucas-tortora wants to merge 5 commits into
holepunchto:mainfrom
lucas-tortora:chore/ts-doc

Conversation

@lucas-tortora

@lucas-tortora lucas-tortora commented Jul 21, 2026

Copy link
Copy Markdown

Document the public API as TSDoc

Adds TSDoc — @param / @returns / @throws tags plus member descriptions — to the shipped .d.ts. Everything is derived from the existing type declarations and this module's own index.js/lib source.

The README's ## API section links to the generated reference instead of inlining it, per the pattern settled on in bare-fs #44. Comments are wrapped to keep every line within 100 columns.

Reviewed against source; happy to adjust wording, scope, or split as you prefer.

🤖 Generated with Claude Code

…tions

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
lucas-tortora and others added 4 commits August 12, 2026 11:57
Points README ## API to docs.pears.com instead of duplicating the
generated reference inline.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Reflows comment text added by the earlier TSDoc commit so no line
exceeds 100 columns, matching the convention settled on in bare-fs #44.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Switches the README API link text from "full API reference" to
the `<module> reference` form, matching the pattern settled on in
bare-fs #44 and merged in bare-ws. Long module names use a
reference-style link to stay within 100 columns.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant