Skip to content

Commit

Permalink
Support strictBuiltinIteratorReturn (#1949)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton authored Jul 25, 2024
1 parent 5469a48 commit ee54608
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
5 changes: 1 addition & 4 deletions src/Map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,7 @@ export function pop<K>(E: Eq<K>): (k: K) => <A>(m: Map<K, A>) => Option<[A, Map<
}
}

interface Next<A> {
readonly done?: boolean
readonly value: A
}
type Next<A> = IteratorResult<A, undefined>

// TODO: remove non-curried overloading in v3
/**
Expand Down
5 changes: 1 addition & 4 deletions src/ReadonlyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ export function member<K>(E: Eq<K>): <A>(k: K, m?: ReadonlyMap<K, A>) => boolean
}
}

interface Next<A> {
readonly done?: boolean
readonly value: A
}
type Next<A> = IteratorResult<A, undefined>

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

interface Next<A> {
readonly done?: boolean
readonly value: A
}
type Next<A> = IteratorResult<A, undefined>

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

interface Next<A> {
readonly done?: boolean
readonly value: A
}
type Next<A> = IteratorResult<A, undefined>

/**
* @since 2.0.0
Expand Down

0 comments on commit ee54608

Please sign in to comment.