Set.d.ts 264 B

1234567891011
  1. export interface ISetCtor {
  2. new <T>(): ISet<T>;
  3. }
  4. export interface ISet<T> {
  5. add(value: T): void;
  6. has(value: T): boolean;
  7. size: number;
  8. clear(): void;
  9. }
  10. export declare function minimalSetImpl<T>(): ISetCtor;
  11. export declare const Set: ISetCtor;