UNPKG

@livy/util

Version:
12 lines (11 loc) 349 B
import { ValidatableSet } from './validatable-set'; type GatedSetValidator<T> = (item: unknown) => asserts item is T; export declare class GatedSet<T> extends ValidatableSet<T> { private validator; constructor(validator: GatedSetValidator<T>, iterable?: Iterable<T>); /** * @inheritdoc */ add(value: T): this; } export {};