docs: remove redundant @returns {void} from @stdlib/fs/open and @stdlib/fs/resolve-parent-paths#13112
docs: remove redundant @returns {void} from @stdlib/fs/open and @stdlib/fs/resolve-parent-paths#13112Planeshifter wants to merge 4 commits into
@returns {void} from @stdlib/fs/open and @stdlib/fs/resolve-parent-paths#13112Conversation
Drops the `@returns {void}` JSDoc tag from the exported async
`open` function in `lib/main.js`. The tag is redundant for a
callback-style API whose result channel is the callback, and is
inconsistent with sibling packages in the `@stdlib/fs/*`
namespace: 14 of 16 packages (87.5%) omit a `@returns` tag on the
exported async function in `lib/main.js` / `lib/async.js`.
PR-URL: TBD
Reviewed-by: TBD
…-paths`
Drops the `@returns {void}` JSDoc tag from the exported async
`resolveParentPaths` function in `lib/main.js`. The tag is
redundant for a callback-style API whose result channel is the
callback, and is inconsistent with sibling packages in the
`@stdlib/fs/*` namespace: 14 of 16 packages (87.5%) omit a
`@returns` tag on the exported async function in `lib/main.js` /
`lib/async.js`. Inner helper functions (`first`, `some`, `all`,
`each`) retain their `@returns {void}` tags.
PR-URL: TBD
Reviewed-by: TBD
Coverage Report
The above coverage report was generated for the changes in this PR. |
|
Closing — The drift detector measured presence/absence of Reverted both commits and closing this PR. The local drift report has been updated to record the inverted direction so future runs can apply the right gate (cross-check candidate "missing-tag" majorities against the active ESLint config before flagging). Generated by Claude Code |
Description
This pull request:
@returns {void}JSDoc tag from the exported async function in two@stdlib/fs/*packages that diverged from the namespace convention. Of 16 packages in@stdlib/fs/*, 14 (87.5%) omit@returnson the exported callback-style async function; the two outliers carried@returns {void}, which adds no information when the callback is the result channel.@stdlib/fs/openRemove the
@returns {void}line from the JSDoc block of the exported asyncopeninlib/main.js, aligning it with the 87.5% of@stdlib/fs/*packages (14 of 16) that omit a@returnstag on the callback-style async function and matching siblings such asread-file,close, andappend-file. The sync overload's@returnsannotation inlib/sync.jsis untouched.@stdlib/fs/resolve-parent-pathsDrops the redundant
@returns {void}tag from the asyncresolveParentPathsJSDoc inlib/main.js, aligning it with the 87.5% of@stdlib/fs/*packages that omit the tag on callback-style exports (e.g.read-file,close,append-file) where the callback is the result channel. The innerfirst/some/all/eachhelpers keep their@returns {void}tags, andlib/sync.jsis untouched.Related Issues
No.
Questions
No.
Other
Comment-only edit; no runtime behavior, public signature, type declaration, or test expectation changes. Two commits, one per outlier package.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was generated by an automated cross-package drift detection routine running on Claude Code: structural and semantic features were extracted from all 16 packages in
@stdlib/fs/*, the majority pattern per feature was computed (≥75% threshold), outliers were validated by independent reviewer subagents, and the surviving mechanical corrections were applied. Final review is the maintainer's call.@stdlib-js/reviewers
Generated by Claude Code