Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support strictBuiltinIteratorReturn #1949

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading