Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorgb36cecf33b4e
diff --git a/static/js/fold_dict.ts b/static/js/fold_dict.ts
index d7ce31aae61..893860b5f1d 100644
--- a/static/js/fold_dict.ts
+++ b/static/js/fold_dict.ts
@@ -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();
}