@livy/util
Version:
Common utilities for the Livy logger
12 lines (11 loc) • 349 B
TypeScript
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 {};