(key: string, _value: string | string[])
| 52 | readonly keyToValue = new Map<string, string[]>(); |
| 53 | readonly valueToKey = new Map<string, string>(); |
| 54 | add(key: string, _value: string | string[]) { |
| 55 | const value = Array.isArray(_value) ? _value : [_value]; |
| 56 | this.keyToValue.set(key, value); |
| 57 | for (const val of value) { |
| 58 | this.valueToKey.set(val, key); |
| 59 | } |
| 60 | } |
| 61 | delete(key: string) { |
| 62 | const value = this.value(key); |
| 63 | this.keyToValue.delete(key); |
no outgoing calls
no test coverage detected