From fc56e6c53c39567d150e4e212159a86d333a61ec Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Sat, 6 Jun 2026 00:52:03 -0500 Subject: [PATCH] refactor: replace `Object` with `Record` in `ndarray/to-locale-string` The `options` parameter used the broad `Object` anti-pattern. Use `Record` instead. The function forwards options opaquely to the native `toLocaleString`, so a dedicated `Options` interface is not introduced. --- 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/ndarray/to-locale-string/docs/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/to-locale-string/docs/types/index.d.ts b/lib/node_modules/@stdlib/ndarray/to-locale-string/docs/types/index.d.ts index dd458e7ff1aa..858ae8096209 100644 --- a/lib/node_modules/@stdlib/ndarray/to-locale-string/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/ndarray/to-locale-string/docs/types/index.d.ts @@ -43,7 +43,7 @@ import { ndarray } from '@stdlib/types/ndarray'; * var str = ndarray2localeString( x ); * // returns */ -declare function ndarray2localeString( x: ndarray, locales?: string | Array, options?: Object ): string; +declare function ndarray2localeString( x: ndarray, locales?: string | Array, options?: Record ): string; // EXPORTS //