From 735e752592530c511d1d249b64704ee831ca4857 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 5 Jun 2026 13:26:18 +0000 Subject: [PATCH 1/2] refactor: remove redundant generic constraint in two `ndarray` packages Propagates fix from 15a731b9 and c26d8b58 ("refactor: remove redundant generic constraint in `blas/ext/base/ndarray/gsort{,hp}`") to the `flattenBy` and `flattenFromBy` overloads carrying the same redundant `typedndarray | genericndarray` union in a generic constraint. The `genericndarray` clause is subsumed by `typedndarray`; the import is retained for use by other overloads in the same file. --- .../@stdlib/ndarray/flatten-by/docs/types/index.d.ts | 2 +- .../@stdlib/ndarray/flatten-from-by/docs/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/flatten-by/docs/types/index.d.ts b/lib/node_modules/@stdlib/ndarray/flatten-by/docs/types/index.d.ts index 06cc99634c9c..6445ebb260ec 100644 --- a/lib/node_modules/@stdlib/ndarray/flatten-by/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/ndarray/flatten-by/docs/types/index.d.ts @@ -404,7 +404,7 @@ declare function flattenBy = genericnda * var y = flattenBy( x, opts, scale ); * // returns [ 2.0, 4.0, 6.0, 8.0, 10.0, 12.0 ] */ -declare function flattenBy | genericndarray = typedndarray, V = unknown, W extends keyof DataTypeMap = 'generic', ThisArg = unknown>( x: U, options: Options, fcn: Callback, thisArg?: ThisParameterType> ): DataTypeMap[W]; +declare function flattenBy = typedndarray, V = unknown, W extends keyof DataTypeMap = 'generic', ThisArg = unknown>( x: U, options: Options, fcn: Callback, thisArg?: ThisParameterType> ): DataTypeMap[W]; // EXPORTS // diff --git a/lib/node_modules/@stdlib/ndarray/flatten-from-by/docs/types/index.d.ts b/lib/node_modules/@stdlib/ndarray/flatten-from-by/docs/types/index.d.ts index 90b094f3c707..8fd5478844fc 100644 --- a/lib/node_modules/@stdlib/ndarray/flatten-from-by/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/ndarray/flatten-from-by/docs/types/index.d.ts @@ -399,7 +399,7 @@ declare function flattenFromBy = generi * var y = flattenFromBy( x, 1, opts, scale ); * // returns [ [ 2.0, 4.0 ], [ 6.0, 8.0 ], [ 10.0, 12.0 ] ] */ -declare function flattenFromBy | genericndarray = typedndarray, V = unknown, W extends keyof DataTypeMap = 'generic', ThisArg = unknown>( x: U, dim: number, options: Options, fcn: Callback, thisArg?: ThisParameterType> ): DataTypeMap[W]; +declare function flattenFromBy = typedndarray, V = unknown, W extends keyof DataTypeMap = 'generic', ThisArg = unknown>( x: U, dim: number, options: Options, fcn: Callback, thisArg?: ThisParameterType> ): DataTypeMap[W]; // EXPORTS // From 41a44434372a8383eb5bcc51b1b3b0eb43efc01c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 5 Jun 2026 13:26:25 +0000 Subject: [PATCH 2/2] fix: rename interface to PascalCase in `assert/is-well-formed-string` Propagates fix from 608e415c ("fix: rename interface to PascalCase `LastIndexOf` in `blas/ext/last-index-of`") to the sibling `assert/is-well-formed-string` package whose declaration file used a camelCase interface name (`isWellFormedString`) contrary to the PascalCase convention used by every other `assert/is-*` package. --- .../assert/is-well-formed-string/docs/types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-well-formed-string/docs/types/index.d.ts b/lib/node_modules/@stdlib/assert/is-well-formed-string/docs/types/index.d.ts index 3d0a7a9b5091..8e863dc2fd9f 100644 --- a/lib/node_modules/@stdlib/assert/is-well-formed-string/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/assert/is-well-formed-string/docs/types/index.d.ts @@ -21,7 +21,7 @@ /** * Interface defining `isWellFormedString` with methods for testing for primitives and objects, respectively. */ -interface isWellFormedString { +interface IsWellFormedString { /** * Tests if a string is well-formed. * @@ -125,7 +125,7 @@ interface isWellFormedString { * var bool = isWellFormedString( null ); * // returns false */ -declare var isWellFormedString: isWellFormedString; +declare var isWellFormedString: IsWellFormedString; // EXPORTS //