Skip to content

docs: fix url param JSDoc in ResourceHandler and ContainerHandler#8619

Merged
willeastcott merged 3 commits into
mainfrom
docs-fix-url-param-warnings
Apr 20, 2026
Merged

docs: fix url param JSDoc in ResourceHandler and ContainerHandler#8619
willeastcott merged 3 commits into
mainfrom
docs-fix-url-param-warnings

Conversation

@willeastcott

@willeastcott willeastcott commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Consolidate the separate url.load and url.original @param lines into a single union-typed @param on ResourceHandler.load and ContainerHandler.load. TypeDoc couldn't associate the sub-property @params with the string|object union and emitted "unused @param" warnings for each. The union type string | {load: string, original: string} describes both accepted shapes accurately.

Clears all six warnings:

  • ContainerHandler.load @param "url.load" / "url.original"
  • RenderHandler.load @param "url.load" / "url.original" (inherited)
  • ResourceHandler.load @param "url.load" / "url.original"

Test plan

  • npm run docs - the six targeted warnings are gone.
  • Spot-check the generated ResourceHandler.load / ContainerHandler.load pages.

Consolidate the separate `url.load` and `url.original` `@param` lines into a
single union-typed `@param {string | {load: string, original: string}} url`
entry. TypeDoc couldn't associate the sub-property `@param`s with the
`string|object` union and emitted "unused @param" warnings for `url.load` and
`url.original` on `ResourceHandler.load`, `ContainerHandler.load`, and
`RenderHandler.load` (inherited). The union type documents the two shapes
accurately and clears all six warnings.

Made-with: Cursor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates JSDoc for ResourceHandler.load and ContainerHandler.load to describe the accepted url parameter shapes using a single union-typed @param, avoiding TypeDoc “unused @param” warnings for sub-property params.

Changes:

  • Replace @param url.load / @param url.original sub-property entries with a single union-typed @param for url.
  • Apply the same consolidated url type documentation to both ResourceHandler and ContainerHandler.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/framework/handlers/handler.js Consolidates url JSDoc into a single union type for ResourceHandler.load.
src/framework/handlers/container.js Mirrors the consolidated url JSDoc for ContainerHandler.load.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/framework/handlers/handler.js Outdated
Comment thread src/framework/handlers/container.js Outdated
willeastcott and others added 2 commits April 20, 2026 09:42
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@willeastcott willeastcott merged commit 27ec8c4 into main Apr 20, 2026
6 of 8 checks passed
@willeastcott willeastcott deleted the docs-fix-url-param-warnings branch April 20, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants