From a963bebc0de5f38ff4ad48f4b4b00f95aa8ebbcd Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Mon, 8 Dec 2025 06:19:39 +0000 Subject: [PATCH] feat: update `utils` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../@stdlib/utils/docs/types/index.d.ts | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/docs/types/index.d.ts b/lib/node_modules/@stdlib/utils/docs/types/index.d.ts index 47907b5ad831..e7788a598422 100644 --- a/lib/node_modules/@stdlib/utils/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/utils/docs/types/index.d.ts @@ -2156,7 +2156,7 @@ interface Namespace { * var obj = {'a':{'b':{'c':'d'}}}; * * var out = flatten( obj ); - * // returns {'a|b':{'c':'d'}} + * // returns {'a|b|c':'d'} */ flattenObject: typeof flattenObject; @@ -3256,23 +3256,30 @@ interface Namespace { * @returns function wrapper * * @example - * function foo( a, b, c ) { - * return [ a, b, c ]; - * } - * * function clbk( v ) { - * this.count += 1; * return v * 2; * } * - * var thisArg = { 'count': 0 }; - * var bar = ns.mapArguments( foo, clbk, thisArg ); + * function Foo() { + * this.x = 1; + * this.y = 2; + * } * - * var out = bar( 1, 2, 3 ); - * // returns [ 2, 4, 6 ] + * Foo.prototype.scale = function scale( a, b ) { + * return [ this.x*a, this.y*b ]; + * }; * - * var count = thisArg.count; - * // returns 3 + * var ctx = { + * 'x': 10, + * 'y': 20 + * }; + * + * var foo = new Foo(); + * + * var bar = ns.mapArguments( foo.scale, clbk, ctx ); + * + * var out = bar( 1, 2 ); + * // returns [ 20, 80 ] */ mapArguments: typeof mapArguments;