Remove enum prefixes

This commit is contained in:
Jon Staab
2025-10-20 15:17:05 -07:00
parent 0be540c0d2
commit 64871b1c99
7 changed files with 31 additions and 30 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ export type WrapManagerOptions = {
export class WrapManager extends Emitter {
_wrapIndex = new Map<string, WrapItem>()
_rumorIndex = new Map<string, WrapReference>()
_recipientIndex = new Map<string, WrapReference>()
constructor(readonly options: WrapManagerOptions) {
super()
@@ -28,7 +29,7 @@ export class WrapManager extends Emitter {
dump = () => Array.from(this._wrapIndex.values())
getWraps = (rumorId: string) =>
this._rumorIndex.get(rumorId).map(wrapId => this._wrapIndex.get(wrapId)!)
(this._rumorIndex.get(rumorId) || []).map(wrapId => this._wrapIndex.get(wrapId)!)
getRumor = (wrapId: string) => {
const wrapItem = this._wrapIndex.get(wrapId)