UNPKG

@typescript-package/set

Version:

A lightweight TypeScript library for enhanced `set` management.

13 lines (12 loc) 314 B
/** * @description Immutable version of `Set`. * @export * @class ImmutableSet * @template Type * @extends {Set<Readonly<Type>>} */ export declare class ImmutableSet<Type> extends Set<Readonly<Type>> { constructor(iterable?: Iterable<Type> | null); delete(value: Type): boolean; clear(): this; }