Files
j2s/src/main/resources/lib/globals/set.d.ts
TopchetoEU b1e0db627c
Some checks failed
tagged-release / Tagged Release (push) Failing after 3m24s
fix typings so they are usable for building the project itself
2025-01-06 14:02:07 +02:00

19 lines
360 B
TypeScript

interface Set<V> {
readonly size: number;
add(val: V): this;
has(key: V): boolean;
delete(key: V): boolean;
clear(): void;
keys(): V[];
values(): V[];
entries(): [V, V][];
forEach(cb: (val: V, key: V, map: this) => void, self?: any): void;
[Symbol.iterator](): Iterator<V>;
}
interface SetConstructor {
new <V>(iterable?: Iterable<V>): Set<V>;
}