From bcb3ca05f80e0a5dccafdfc92bc35a4076c1fe84 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Sun, 22 Mar 2026 03:13:31 +0000 Subject: [PATCH] feat: update `ndarray` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../@stdlib/ndarray/docs/types/index.d.ts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts b/lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts index 507a1f465c41..a3fb06d0e6a3 100644 --- a/lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts @@ -113,6 +113,7 @@ import ndarray2array = require( '@stdlib/ndarray/to-array' ); import toFlippedlr = require( '@stdlib/ndarray/to-flippedlr' ); import toFlippedud = require( '@stdlib/ndarray/to-flippedud' ); import ndarray2json = require( '@stdlib/ndarray/to-json' ); +import ndarray2localeString = require( '@stdlib/ndarray/to-locale-string' ); import toReversed = require( '@stdlib/ndarray/to-reversed' ); import toReversedDimension = require( '@stdlib/ndarray/to-reversed-dimension' ); import unshift = require( '@stdlib/ndarray/unshift' ); @@ -3263,6 +3264,29 @@ interface Namespace { */ ndarray2json: typeof ndarray2json; + /** + * Serializes an ndarray as a locale-aware string. + * + * ## Notes + * + * - The function does **not** serialize data outside of the buffer region defined by the ndarray view. + * + * @param x - input ndarray + * @param locales - locale identifier(s) + * @param options - configuration options + * @returns string representation + * + * @example + * var array = require( `@stdlib/ndarray/array` ); + * + * var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ); + * // returns + * + * var str = ns.ndarray2localeString( x ); + * // returns + */ + ndarray2localeString: typeof ndarray2localeString; + /** * Returns a new ndarray where the order of elements of an input ndarray is reversed along each dimension. *