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 27c1381c8b3f..e8bbbc336ac3 100644 --- a/lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts @@ -73,6 +73,7 @@ import stride = require( '@stdlib/ndarray/stride' ); import strides = require( '@stdlib/ndarray/strides' ); import sub2ind = require( '@stdlib/ndarray/sub2ind' ); import ndarray2array = require( '@stdlib/ndarray/to-array' ); +import ndarray2json = require( '@stdlib/ndarray/to-json' ); import zeros = require( '@stdlib/ndarray/zeros' ); import zerosLike = require( '@stdlib/ndarray/zeros-like' ); @@ -1599,6 +1600,27 @@ interface Namespace { */ ndarray2array: typeof ndarray2array; + /** + * Serializes an ndarray as a JSON object. + * + * ## Notes + * + * - The function does **not** serialize data outside of the buffer region defined by the ndarray view. + * + * @param x - input ndarray + * @returns JSON object + * + * @example + * var array = require( '@stdlib/ndarray/array' ); + * + * var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ); + * // returns + * + * var o = ns.ndarray2json( x ); + * // returns {...} + */ + ndarray2json: typeof ndarray2json; + /** * Creates a zero-filled array having a specified shape and data type. *