fix typings so they are usable for building the project itself
Some checks failed
tagged-release / Tagged Release (push) Failing after 3m24s
Some checks failed
tagged-release / Tagged Release (push) Failing after 3m24s
This commit is contained in:
18
src/main/resources/lib/globals/set.d.ts
vendored
Normal file
18
src/main/resources/lib/globals/set.d.ts
vendored
Normal 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user