Skip to content

Commit 6cdd66d

Browse files
authored
docs: update descriptions and add notes
Signed-off-by: Athan <[email protected]>
1 parent c1e6fcc commit 6cdd66d

File tree

1 file changed

+25
-5
lines changed
  • lib/node_modules/@stdlib/blas/ext/find-index/docs/types

1 file changed

+25
-5
lines changed

lib/node_modules/@stdlib/blas/ext/find-index/docs/types/index.d.ts

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ type OutputArray = typedndarray<number>;
3535
/**
3636
* Returns a boolean indicating whether an element passes a test.
3737
*
38-
* @returns a boolean indicating whether an element passes a test
38+
* @returns boolean indicating whether an element passes a test
3939
*/
4040
type NullaryPredicate<ThisArg> = ( this: ThisArg ) => boolean;
4141

4242
/**
4343
* Returns a boolean indicating whether an element passes a test.
4444
*
4545
* @param value - current array element
46-
* @returns a boolean indicating whether an element passes a test
46+
* @returns boolean indicating whether an element passes a test
4747
*/
4848
type UnaryPredicate<T, ThisArg> = ( this: ThisArg, value: T ) => boolean;
4949

@@ -52,7 +52,7 @@ type UnaryPredicate<T, ThisArg> = ( this: ThisArg, value: T ) => boolean;
5252
*
5353
* @param value - current array element
5454
* @param index - current array element index
55-
* @returns a boolean indicating whether an element passes a test
55+
* @returns boolean indicating whether an element passes a test
5656
*/
5757
type BinaryPredicate<T, ThisArg> = ( this: ThisArg, value: T, index: number ) => boolean;
5858

@@ -62,7 +62,7 @@ type BinaryPredicate<T, ThisArg> = ( this: ThisArg, value: T, index: number ) =>
6262
* @param value - current array element
6363
* @param index - current array element index
6464
* @param array - input ndarray
65-
* @returns a boolean indicating whether an element passes a test
65+
* @returns boolean indicating whether an element passes a test
6666
*/
6767
type TernaryPredicate<T, U, ThisArg> = ( this: ThisArg, value: T, index: number, array: U ) => boolean;
6868

@@ -72,7 +72,7 @@ type TernaryPredicate<T, U, ThisArg> = ( this: ThisArg, value: T, index: number,
7272
* @param value - current array element
7373
* @param index - current array element index
7474
* @param array - input ndarray
75-
* @returns a boolean indicating whether an element passes a test
75+
* @returns boolean indicating whether an element passes a test
7676
*/
7777
type Predicate<T, U, ThisArg> = NullaryPredicate<ThisArg> | UnaryPredicate<T, ThisArg> | BinaryPredicate<T, ThisArg> | TernaryPredicate<T, U, ThisArg>;
7878

@@ -111,6 +111,10 @@ interface Options extends BaseOptions {
111111
interface FindIndex {
112112
/**
113113
* Returns the first index of an element along an ndarray dimension which passes a test implemented by a predicate function.
114+
*
115+
* ## Notes
116+
*
117+
* - If no element along an ndarray dimension passes a test implemented by the predicate function, the corresponding element in the returned ndarray is `-1`.
114118
*
115119
* @param x - input ndarray
116120
* @param clbk - predicate function
@@ -137,6 +141,10 @@ interface FindIndex {
137141
/**
138142
* Returns the first index of an element along an ndarray dimension which passes a test implemented by a predicate function.
139143
*
144+
* ## Notes
145+
*
146+
* - If no element along an ndarray dimension passes a test implemented by the predicate function, the corresponding element in the returned ndarray is `-1`.
147+
*
140148
* @param x - input ndarray
141149
* @param options - function options
142150
* @param clbk - predicate function
@@ -163,6 +171,10 @@ interface FindIndex {
163171
/**
164172
* Returns the first index of an element along an ndarray dimension which passes a test implemented by a predicate function and assigns results to a provided output ndarray.
165173
*
174+
* ## Notes
175+
*
176+
* - If no element along an ndarray dimension passes a test implemented by the predicate function, the corresponding element in the returned ndarray is `-1`.
177+
*
166178
* @param x - input ndarray
167179
* @param out - output ndarray
168180
* @param clbk - predicate function
@@ -194,6 +206,10 @@ interface FindIndex {
194206
/**
195207
* Returns the first index of an element along an ndarray dimension which passes a test implemented by a predicate function and assigns results to a provided output ndarray.
196208
*
209+
* ## Notes
210+
*
211+
* - If no element along an ndarray dimension passes a test implemented by the predicate function, the corresponding element in the returned ndarray is `-1`.
212+
*
197213
* @param x - input ndarray
198214
* @param out - output ndarray
199215
* @param options - function options
@@ -227,6 +243,10 @@ interface FindIndex {
227243
/**
228244
* Returns the first index of an element along an ndarray dimension which passes a test implemented by a predicate function and assigns results to a provided output ndarray.
229245
*
246+
* ## Notes
247+
*
248+
* - If no element along an ndarray dimension passes a test implemented by the predicate function, the corresponding element in the returned ndarray is `-1`.
249+
*
230250
* @param x - input ndarray
231251
* @param options - function options
232252
* @param clbk - predicate function

0 commit comments

Comments
 (0)