function findWithIndex<T, S extends T>(
predicate: (value: T, index: number) => value is S,
): Operator<
T,
{
value: S
index: number
}
>1 | function findWithIndex<T, S extends T>( |
2 | predicate: (value: T, index: number) => value is S, |
3 | ): Operator< |
4 | T, |
5 | { |
6 | value: S |
7 | index: number |
8 | } |
9 | > |
function findWithIndex<T>(
predicate: (value: T, index: number) => unknown,
): Operator<
T,
{
value: T
index: number
}
>1 | function findWithIndex<T>( |
2 | predicate: (value: T, index: number) => unknown, |
3 | ): Operator< |
4 | T, |
5 | { |
6 | value: T |
7 | index: number |
8 | } |
9 | > |