(key: string)
| 15 | } |
| 16 | |
| 17 | function getItem(key: string): string | null { |
| 18 | if (isLocalStorageEnabled()) { |
| 19 | return localStorage.getItem(key); |
| 20 | } |
| 21 | return inMemoryStorage[key] ?? null; |
| 22 | } |
| 23 | |
| 24 | function setItem(key: string, value: string): void { |
| 25 | if (isLocalStorageEnabled()) { |
nothing calls this directly
no test coverage detected