Skip to content

Commit

Permalink
Fill in TReturn type
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Jul 19, 2024
1 parent 802e824 commit 01b2cc3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ReadonlyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function member<K>(E: Eq<K>): <A>(k: K, m?: ReadonlyMap<K, A>) => boolean
}
}

type Next<A> = IteratorResult<A>;
type Next<A> = IteratorResult<A, undefined>;

// TODO: remove non-curried overloading in v3
/**
Expand Down
2 changes: 1 addition & 1 deletion src/ReadonlySet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function toSet<A>(s: ReadonlySet<A>): Set<A> {
return new Set(s)
}

type Next<A> = IteratorResult<A>;
type Next<A> = IteratorResult<A, undefined>;

/**
* Projects a Set through a function
Expand Down
2 changes: 1 addition & 1 deletion src/Set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function chain<B>(E: Eq<B>): <A>(f: (x: A) => Set<B>) => (set: Set<A>) =>
}
}

type Next<A> = IteratorResult<A>;
type Next<A> = IteratorResult<A, undefined>;

/**
* @since 2.0.0
Expand Down

0 comments on commit 01b2cc3

Please sign in to comment.