From dd91ec3dbf3a363fc19c3d108933aca87cdd94c2 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Tue, 31 Mar 2026 03:13:42 +0000 Subject: [PATCH] feat: update `array` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../@stdlib/array/docs/types/index.d.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/node_modules/@stdlib/array/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/docs/types/index.d.ts index cf5545f7d1de..582c8788c674 100644 --- a/lib/node_modules/@stdlib/array/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/array/docs/types/index.d.ts @@ -62,6 +62,7 @@ import mskreject = require( '@stdlib/array/mskreject' ); import nans = require( '@stdlib/array/nans' ); import nansLike = require( '@stdlib/array/nans-like' ); import nextDataType = require( '@stdlib/array/next-dtype' ); +import nulls = require( '@stdlib/array/nulls' ); import oneTo = require( '@stdlib/array/one-to' ); import oneToLike = require( '@stdlib/array/one-to-like' ); import ones = require( '@stdlib/array/ones' ); @@ -1008,6 +1009,27 @@ interface Namespace { */ nextDataType: typeof nextDataType; + /** + * Creates an array filled with nulls and having a specified length. + * + * The function recognizes the following data types: + * + * - `generic`: generic JavaScript values + * + * @param length - array length + * @param dtype - data type (default: 'generic') + * @returns filled array + * + * @example + * var arr = ns.nulls( 2 ); + * // returns [ null, null ] + * + * @example + * var arr = ns.nulls( 2, 'generic' ); + * // returns [ null, null ] + */ + nulls: typeof nulls; + /** * Generates a linearly spaced numeric array whose elements increment by 1 starting from one. *