UNPKG

365 BTypeScriptView Raw
1export declare abstract class AbstractSet<T> {
2 abstract add(item: T): this;
3 abstract entries(): Array<T>;
4 abstract remove(item: T): boolean;
5 abstract has(item: T): boolean;
6 abstract readonly Size: number;
7 diff(set: AbstractSet<T>): T[];
8 union(set: AbstractSet<T>): T[];
9 intersect(set: AbstractSet<T>): T[];
10 isEmpty(): boolean;
11}