| 73 | } |
| 74 | |
| 75 | class TempStorage implements DevToolsStorage { |
| 76 | private map = new Map<string, string>(); |
| 77 | |
| 78 | async get(key: string) { |
| 79 | return this.map.get(key) || null; |
| 80 | } |
| 81 | |
| 82 | set(key: string, value: string) { |
| 83 | this.map.set(key, value); |
| 84 | } |
| 85 | |
| 86 | remove(key: string) { |
| 87 | this.map.delete(key); |
| 88 | } |
| 89 | |
| 90 | async has(key: string) { |
| 91 | return this.map.has(key); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | export default class DevTools { |
| 96 | private static onChange: () => void; |
nothing calls this directly
no outgoing calls
no test coverage detected