From db77ded227b8457997d31ffbe98f705356919ca0 Mon Sep 17 00:00:00 2001 From: Muhammad Haris <101793258+headlessNode@users.noreply.github.com> Date: Tue, 25 Feb 2025 19:19:52 +0000 Subject: [PATCH] fix: typescript callback signature and docs --- 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 status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - 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: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na --- --- .../@stdlib/array/base/for-each/docs/repl.txt | 2 +- .../@stdlib/array/base/for-each/docs/types/index.d.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/for-each/docs/repl.txt b/lib/node_modules/@stdlib/array/base/for-each/docs/repl.txt index 23f7d781dc22..0ae0bc7b2b65 100644 --- a/lib/node_modules/@stdlib/array/base/for-each/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/base/for-each/docs/repl.txt @@ -23,7 +23,7 @@ Callback function. thisArg: any (optional) - Callback function execution context. + Callback execution context. Examples -------- diff --git a/lib/node_modules/@stdlib/array/base/for-each/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/for-each/docs/types/index.d.ts index f542aadad06e..550736eb67af 100644 --- a/lib/node_modules/@stdlib/array/base/for-each/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/array/base/for-each/docs/types/index.d.ts @@ -40,7 +40,7 @@ type Unary = ( this: V, value: T ) => void; * @param value - current array element * @param index - current array element index */ -type Binary = ( this: V, value: T, indices: Array ) => void; +type Binary = ( this: V, value: T, index: number ) => void; /** * Callback invoked for each array element. @@ -49,7 +49,7 @@ type Binary = ( this: V, value: T, indices: Array ) => void; * @param index - current array element index * @param arr - input array */ -type Ternary = ( this: V, value: T, indices: Array, arr: U ) => void; +type Ternary = ( this: V, value: T, index: number, arr: U ) => void; /** * Callback invoked for each array element. @@ -65,7 +65,7 @@ type Callback = Nullary | Unary | Binary | Ternary( x: AccessorArrayLike, fcn * * @param x - input array * @param fcn - callback function -* @param thisArg - callback function execution context +* @param thisArg - callback execution context * * @example * var naryFunction = require( '@stdlib/utils/nary-function' );