mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 04:50:51 +00:00
12 lines
264 B
TypeScript
12 lines
264 B
TypeScript
export interface ISetCtor {
|
|
new <T>(): ISet<T>;
|
|
}
|
|
export interface ISet<T> {
|
|
add(value: T): void;
|
|
has(value: T): boolean;
|
|
size: number;
|
|
clear(): void;
|
|
}
|
|
export declare function minimalSetImpl<T>(): ISetCtor;
|
|
export declare const Set: ISetCtor;
|