From 9d8333c55ca41efe9a75b44970ae923e6f888f73 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Sun, 31 May 2026 01:18:43 -0500 Subject: [PATCH] fix: use `ArrayCallback` for the `assign` thisArg type in `utils` map/map-right In the array `assign` overload of `map` and `map-right`, the callback (`fcn`) is typed as `ArrayCallback` but the optional `thisArg` context was typed `ThisParameterType>`. Align `thisArg` with the callback by using `ThisParameterType>`, matching the corresponding non-`assign` `Collection` overload. --- 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 --- --- lib/node_modules/@stdlib/utils/map-right/docs/types/index.d.ts | 2 +- lib/node_modules/@stdlib/utils/map/docs/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/map-right/docs/types/index.d.ts b/lib/node_modules/@stdlib/utils/map-right/docs/types/index.d.ts index 650c6ef95a47..e3fa7b02903c 100644 --- a/lib/node_modules/@stdlib/utils/map-right/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/utils/map-right/docs/types/index.d.ts @@ -219,7 +219,7 @@ interface Routine { * console.log( out ); * // => [ 1, 2, 3, 4, 5, 6 ] */ - assign( arr: Collection, out: Collection, fcn: ArrayCallback, thisArg?: ThisParameterType> ): Collection; + assign( arr: Collection, out: Collection, fcn: ArrayCallback, thisArg?: ThisParameterType> ): Collection; } /** diff --git a/lib/node_modules/@stdlib/utils/map/docs/types/index.d.ts b/lib/node_modules/@stdlib/utils/map/docs/types/index.d.ts index 04f33b32d37a..9562559aa70e 100644 --- a/lib/node_modules/@stdlib/utils/map/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/utils/map/docs/types/index.d.ts @@ -219,7 +219,7 @@ interface Routine { * console.log( out ); * // => [ 1, 2, 3, 4, 5, 6 ] */ - assign( arr: Collection, out: Collection, fcn: ArrayCallback, thisArg?: ThisParameterType> ): Collection; + assign( arr: Collection, out: Collection, fcn: ArrayCallback, thisArg?: ThisParameterType> ): Collection; } /**