-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStrongStrongSet.d.mts
74 lines (74 loc) · 2.51 KB
/
StrongStrongSet.d.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
declare class StrongStrongSet<__SK0__, __SK1__> {
#private;
constructor(iterable?: [__SK0__, __SK1__][]);
/**
* The number of elements in this collection.
*
* @returns {number} The element count.
* @public
* @constant
*/
get size(): number;
/**
* Add a key set to this collection.
*
* @param {*} key1 The first key.
* @param {*} key2 The second key.
* @returns {StrongStrongSet} This collection.
* @public
*/
add(key1: __SK0__, key2: __SK1__): this;
/**
* Clear the collection.
*
* @public
*/
clear(): void;
/**
* Delete an element from the collection by the given key sequence.
*
* @param {*} key1 The first key.
* @param {*} key2 The second key.
* @returns {boolean} True if we found the value and deleted it.
* @public
*/
delete(key1: __SK0__, key2: __SK1__): boolean;
/**
* An user-provided callback to .forEach().
*
* @callback __StrongStrongSet_ForEachCallback__
* @param {*} key1 The first key.
* @param {*} key2 The second key.
* @param {StrongStrongSet} __collection__ This collection.
*/
/**
* Iterate over the keys.
*
* @param {__StrongStrongSet_ForEachCallback__} __callback__ A function to invoke for each iteration.
* @param {object} __thisArg__ Value to use as this when executing callback.
* @public
*/
forEach(__callback__: (key1: __SK0__, key2: __SK1__, __collection__: StrongStrongSet<__SK0__, __SK1__>) => void, __thisArg__?: unknown): void;
/**
* Report if the collection has a value for a key set.
*
* @param {*} key1 The first key.
* @param {*} key2 The second key.
* @returns {boolean} True if the key set refers to a value in the collection.
* @public
*/
has(key1: __SK0__, key2: __SK1__): boolean;
/**
* Yield the values of the collection.
*
* @yields {*} The value.
* @public
*/
values(): IterableIterator<[__SK0__, __SK1__]>;
[Symbol.iterator](): IterableIterator<[__SK0__, __SK1__]>;
[Symbol.toStringTag]: string;
}
export declare type ReadonlyStrongStrongSet<__SK0__, __SK1__> = Pick<StrongStrongSet<__SK0__, __SK1__>, "size" | "has" | "values"> & {
forEach(__callback__: (key1: __SK0__, key2: __SK1__, __collection__: ReadonlyStrongStrongSet<__SK0__, __SK1__>) => void, __thisArg__?: unknown): void;
};
export default StrongStrongSet;