mirror of https://github.com/zulip/zulip.git
fold_dict: Fix @typescript-eslint/member-ordering.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
51971a48f3
commit
b36cecf33b
|
@ -17,6 +17,10 @@ type KeyValue<V> = {k: string; v: V};
|
|||
export class FoldDict<V> {
|
||||
private _items: Map<string, KeyValue<V>> = new Map();
|
||||
|
||||
get size(): number {
|
||||
return this._items.size;
|
||||
}
|
||||
|
||||
get(key: string): V | undefined {
|
||||
const mapping = this._items.get(this._munge(key));
|
||||
if (mapping === undefined) {
|
||||
|
@ -56,10 +60,6 @@ export class FoldDict<V> {
|
|||
}
|
||||
}
|
||||
|
||||
get size(): number {
|
||||
return this._items.size;
|
||||
}
|
||||
|
||||
clear(): void {
|
||||
this._items.clear();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue