Fix iterableUnion types
This commit is contained in:
parent
2ec94e8a69
commit
0570deffa2
2 changed files with 3 additions and 3 deletions
|
@ -16,6 +16,6 @@
|
|||
|
||||
import { arrayUnion } from "./arrays";
|
||||
|
||||
export function iterableUnion<C extends Iterable<T>, T>(a: C, b: C): Set<T> {
|
||||
return new Set(arrayUnion(Array.from(a), Array.from(b)));
|
||||
export function iterableUnion<T>(a: Iterable<T>, b: Iterable<T>): Iterable<T> {
|
||||
return arrayUnion(Array.from(a), Array.from(b));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue