Remove tsc-multi, re-install gts, apply autoformatting and linting

This commit is contained in:
Jon Staab
2024-12-17 10:59:27 -08:00
parent 0b86613161
commit f33e03740e
122 changed files with 2243 additions and 2178 deletions
+6 -6
View File
@@ -1,4 +1,4 @@
import {Emitter, addToMapKey} from '@welshman/lib'
import {Emitter, addToMapKey} from "@welshman/lib"
export class Tracker extends Emitter {
relaysById = new Map<string, Set<string>>()
@@ -36,7 +36,7 @@ export class Tracker extends Emitter {
this.relaysById.set(eventId, relays)
this.idsByRelay.set(eventId, relays)
this.emit('update')
this.emit("update")
}
removeRelay = (eventId: string, relay: string) => {
@@ -45,7 +45,7 @@ export class Tracker extends Emitter {
if (!didDeleteRelay && !didDeleteId) return
this.emit('update')
this.emit("update")
}
track = (eventId: string, relay: string) => {
@@ -62,7 +62,7 @@ export class Tracker extends Emitter {
}
}
load = (relaysById: Tracker['relaysById']) => {
load = (relaysById: Tracker["relaysById"]) => {
this.relaysById.clear()
this.idsByRelay.clear()
@@ -73,13 +73,13 @@ export class Tracker extends Emitter {
}
}
this.emit('update')
this.emit("update")
}
clear = () => {
this.relaysById.clear()
this.idsByRelay.clear()
this.emit('update')
this.emit("update")
}
}