-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathdefault-map.d.ts
More file actions
29 lines (25 loc) · 704 Bytes
/
Copy pathdefault-map.d.ts
File metadata and controls
29 lines (25 loc) · 704 Bytes
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
/**
* Mnemonist DefaultMap Typings
* =============================
*/
export default class DefaultMap<K, V> implements Iterable<[K, V]> {
// Members
size: number;
// Constructor
constructor(factory: (key: K, index: number) => V);
// Methods
clear(): void;
set(key: K, value: V): this;
delete(key: K): boolean;
has(key: K): boolean;
get(key: K): V;
peek(key: K): V | undefined;
forEach(callback: (value: V, key: K, map: this) => void, scope?: any): void;
keys(): IterableIterator<K>;
values(): IterableIterator<V>;
entries(): IterableIterator<[K, V]>;
[Symbol.iterator](): IterableIterator<[K, V]>;
inspect(): any;
// Statics
static autoIncrement(): number;
}