Skip to content

docs: document @throws for math/base/utils/float64-epsilon-difference#12465

Open
Planeshifter wants to merge 1 commit into
developfrom
philipp/docs-fix-math-misc-declarations
Open

docs: document @throws for math/base/utils/float64-epsilon-difference#12465
Planeshifter wants to merge 1 commit into
developfrom
philipp/docs-fix-math-misc-declarations

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

@Planeshifter Planeshifter commented Jun 2, 2026

Description

What is the purpose of this pull request?

This pull request adds the @throws must provide a recognized scale function name tag to the @stdlib/math/base/utils/float64-epsilon-difference declaration, which the sibling relative-difference documents. epsilonDifference accepts the same scale argument and delegates to reldiff, which throws on an unrecognized scale-name string, so the declaration should document it.

Related Issues

Does this pull request have any related issues?

No.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request?

Found via a TypeScript-declaration audit of the @stdlib/math namespace.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

If you answered "yes" to using AI assistance, please provide a short disclosure.

This issue was identified by an automated TypeScript-declaration audit run with Claude Code, and the fix was prepared by Claude Code under my review.


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added the Math Issue or pull request specific to math functionality. label Jun 2, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

stdlib-bot commented Jun 2, 2026

Coverage Report

Package Statements Branches Functions Lines
math/base/utils/float64-epsilon-difference $\color{green}131/131$
$\color{green}+0.00\%$
$\color{green}9/9$
$\color{green}+0.00\%$
$\color{green}1/1$
$\color{green}+0.00\%$
$\color{green}131/131$
$\color{green}+0.00\%$

The above coverage report was generated for the changes in this PR.

…nce`

Add the `@throws must provide a recognized scale function name` tag that
the sibling `relative-difference` documents. `epsilonDifference` accepts
the same `scale` argument and delegates to `reldiff`, which throws on an
unrecognized scale-name string, so the declaration should document it.

This PR addresses only the TypeScript declaration file.

---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown_pkg_readmes
    status: na
  - task: lint_markdown_docs
    status: na
  - task: lint_markdown
    status: na
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: na
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: na
  - task: lint_javascript_benchmarks
    status: na
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: na
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: na
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: passed
  - task: lint_typescript_tests
    status: passed
  - task: lint_license_headers
    status: passed
---
@Planeshifter Planeshifter force-pushed the philipp/docs-fix-math-misc-declarations branch from ec5a8de to fd406b2 Compare June 3, 2026 00:10
@Planeshifter Planeshifter changed the title docs: fix miscellaneous TSDoc issues in @stdlib/math declarations docs: document @throws for math/base/utils/float64-epsilon-difference Jun 3, 2026
@Planeshifter Planeshifter marked this pull request as ready for review June 3, 2026 00:15
@Planeshifter Planeshifter requested review from a team and kgryte June 3, 2026 00:15
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Math Issue or pull request specific to math functionality. Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants