Skip to content

Commit

Permalink
fix(single): make iterable prototype single predicate an optional par…
Browse files Browse the repository at this point in the history
…ameter again

#83 (comment)
  • Loading branch information
trxcllnt committed Nov 5, 2017
1 parent c9b870a commit 2bea5ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/add/iterable-operators/single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { single } from '../../iterable/single';
*/
export function singleProto<T, S extends T>(
this: IterableX<T>,
predicate: (value: T, index: number) => value is S
predicate?: (value: T, index: number) => value is S
): S | undefined;
export function singleProto<T>(
this: IterableX<T>,
predicate: (value: T, index: number) => boolean
predicate?: (value: T, index: number) => boolean
): T | undefined;
export function singleProto<T>(
this: IterableX<T>,
Expand Down

0 comments on commit 2bea5ab

Please sign in to comment.