|
21 | 21 | /// <reference types="@stdlib/types"/> |
22 | 22 |
|
23 | 23 | import { ArrayLike } from '@stdlib/types/array'; |
24 | | -import { ndarray, typedndarray } from '@stdlib/types/ndarray'; |
| 24 | +import { typedndarray } from '@stdlib/types/ndarray'; |
25 | 25 |
|
26 | 26 | /** |
27 | 27 | * Returns a boolean indicating whether an element passes a test. |
@@ -221,7 +221,7 @@ interface FindLast { |
221 | 221 | * var out = findLast.assign( x, y, isEven ); |
222 | 222 | * // returns <ndarray>[ 6.0 ] |
223 | 223 | */ |
224 | | - assign<T = unknown, U extends typedndarray<T> = typedndarray<T>, ThisArg = unknown>( x: ndarray, out: U, predicate: Predicate<T, U, ThisArg>, thisArg?: ThisParameterType<Predicate<T, U, ThisArg>> ): U; |
| 224 | + assign<T = unknown, U extends typedndarray<T> = typedndarray<T>, V extends typedndarray<T> = typedndarray<T>, ThisArg = unknown>( x: U, out: V, predicate: Predicate<T, U, ThisArg>, thisArg?: ThisParameterType<Predicate<T, U, ThisArg>> ): V; |
225 | 225 |
|
226 | 226 | /** |
227 | 227 | * Finds the last elements which pass a test implemented by a predicate function along one or more ndarray dimensions and assigns results to a provided output ndarray. |
@@ -265,7 +265,7 @@ interface FindLast { |
265 | 265 | * var out = findLast.assign( x, y, {}, isEven ); |
266 | 266 | * // returns <ndarray>[ 6.0 ] |
267 | 267 | */ |
268 | | - assign<T = unknown, U extends typedndarray<T> = typedndarray<T>, V = T, ThisArg = unknown>( x: ndarray, out: U, options: AssignOptions<V>, predicate: Predicate<T, U, ThisArg>, thisArg?: ThisParameterType<Predicate<T, U, ThisArg>> ): U; |
| 268 | + assign<T = unknown, U extends typedndarray<T> = typedndarray<T>, V extends typedndarray<T> = typedndarray<T>, W = T, ThisArg = unknown>( x: U, out: V, options: AssignOptions<W>, predicate: Predicate<T, U, ThisArg>, thisArg?: ThisParameterType<Predicate<T, U, ThisArg>> ): V; |
269 | 269 | } |
270 | 270 |
|
271 | 271 | /** |
|
0 commit comments