fix typings so they are usable for building the project itself
Some checks failed
tagged-release / Tagged Release (push) Failing after 3m24s

This commit is contained in:
2025-01-06 14:02:07 +02:00
parent 4fd05e9e6f
commit b1e0db627c
17 changed files with 122 additions and 38 deletions

18
src/main/resources/lib/globals/set.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
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>;
}