Skip to content

fix: address typo in parameter name#12457

Merged
kgryte merged 1 commit into
developfrom
philipp/fix-strided-acot-by-senary-this-param
Jun 3, 2026
Merged

fix: address typo in parameter name#12457
kgryte merged 1 commit into
developfrom
philipp/fix-strided-acot-by-senary-this-param

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Description

What is the purpose of this pull request?

This pull request:

  • Corrects the Senary callback type alias in the @stdlib/math/strided/special/acot-by TypeScript declarations, which declared its leading context parameter as thos: V instead of the reserved this: V. As written, TypeScript treats thos as an ordinary first positional parameter, shifting value, idx, xi, yi, x, and y each by one position and dropping the intended this-context typing entirely. The accompanying TSDoc documents no thos parameter, so the signature no longer matched the documentation.
  • Renames the parameter to this, matching the sibling Quinary type in the same file and the rest of the -by accessor family (e.g. acos-by, acosh-by, acoth-by, acovercos-by, acoversin-by).

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

The `Senary` callback type alias declared its leading context parameter
as `thos: V` instead of the reserved `this: V`. As written, TypeScript
treats `thos` as an ordinary first positional parameter, shifting
`value`, `idx`, `xi`, `yi`, `x`, and `y` each by one position and
dropping the intended `this`-context typing entirely. The accompanying
TSDoc documents no `thos` parameter, so the signature no longer matched
the documentation.

Rename the parameter to `this`, matching the sibling `Quinary` type in
the same file and the rest of the `-by` accessor family (e.g.
`acos-by`, `acosh-by`, `acoth-by`, `acovercos-by`, `acoversin-by`).

---
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
---
@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

Coverage Report

Package Statements Branches Functions Lines
math/strided/special/acot-by $\color{green}197/197$
$\color{green}+100.00\%$
$\color{green}5/5$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}197/197$
$\color{green}+100.00\%$

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

@Planeshifter Planeshifter marked this pull request as ready for review June 3, 2026 00:07
@Planeshifter Planeshifter requested review from a team and kgryte June 3, 2026 00:07
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Jun 3, 2026
@kgryte kgryte removed the Needs Review A pull request which needs code review. label Jun 3, 2026
@kgryte kgryte changed the title fix: use this context parameter in math/strided/special/acot-by fix: address typo in parameter name Jun 3, 2026
@kgryte kgryte merged commit b4c05f9 into develop Jun 3, 2026
54 checks passed
@kgryte kgryte deleted the philipp/fix-strided-acot-by-senary-this-param branch June 3, 2026 01:44
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants