rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
15 lines (14 loc) • 319 B
text/typescript
import { IReadonlySetLike } from "./i-readonly-set-like.js";
/**
* @public
*/
export interface ISetLike<TItem> extends IReadonlySetLike<TItem>
{
add(item: TItem): void;
/**
* @returns true if the item was deleted.
*/
delete(item: TItem): boolean;
clear(): void;
readonly size: number;
}