Fix iterableUnion types
parent
2ec94e8a69
commit
0570deffa2
|
@ -25,6 +25,6 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
|||
}
|
||||
|
||||
public async validateCapabilities(requested: Set<Capability>): Promise<Set<Capability>> {
|
||||
return iterableUnion(requested, new Set(this.allowedCapabilities));
|
||||
return new Set(iterableUnion(requested, this.allowedCapabilities));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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…
Reference in New Issue