Skip to content

Commit a2a20a2

Browse files
authored
fix: infer input ndarray type in ndarray/some-by assign overloads
PR-URL: #12627 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 40d24b1 commit a2a20a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/some-by/docs/types

lib/node_modules/@stdlib/ndarray/some-by/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ interface SomeBy {
209209
* var out = someBy.assign( x, 3, y, isEven );
210210
* // returns <ndarray>[ true ]
211211
*/
212-
assign<T = unknown, U extends InputArray<T> = InputArray<T>, V extends ndarray = ndarray, ThisArg = unknown>( x: ndarray, n: integerndarray | number, y: V, predicate: Predicate<T, U, ThisArg>, thisArg?: ThisParameterType<Predicate<T, U, ThisArg>> ): V;
212+
assign<T = unknown, U extends InputArray<T> = InputArray<T>, V extends ndarray = ndarray, ThisArg = unknown>( x: U, n: integerndarray | number, y: V, predicate: Predicate<T, U, ThisArg>, thisArg?: ThisParameterType<Predicate<T, U, ThisArg>> ): V;
213213

214214
/**
215215
* Tests whether at least `n` elements along one or more ndarray dimensions pass a test implemented by a predicate function.
@@ -253,7 +253,7 @@ interface SomeBy {
253253
* var out = someBy.assign( x, 3, y, {}, isEven );
254254
* // returns <ndarray>[ true ]
255255
*/
256-
assign<T = unknown, U extends InputArray<T> = InputArray<T>, V extends ndarray = ndarray, ThisArg = unknown>( x: ndarray, n: integerndarray | number, y: V, options: BaseOptions, predicate: Predicate<T, U, ThisArg>, thisArg?: ThisParameterType<Predicate<T, U, ThisArg>> ): V;
256+
assign<T = unknown, U extends InputArray<T> = InputArray<T>, V extends ndarray = ndarray, ThisArg = unknown>( x: U, n: integerndarray | number, y: V, options: BaseOptions, predicate: Predicate<T, U, ThisArg>, thisArg?: ThisParameterType<Predicate<T, U, ThisArg>> ): V;
257257
}
258258

259259
/**

0 commit comments

Comments
 (0)