fold_dict: Fix @typescript-eslint/member-ordering.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-10-16 14:08:36 -07:00 committed by Tim Abbott
parent 51971a48f3
commit b36cecf33b
1 changed files with 4 additions and 4 deletions

View File

@ -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();
}