| 27 | const prefix = options.localStoragePrefix ?? ''; |
| 28 | |
| 29 | export interface Storage { |
| 30 | get<T>(key: string, ifNotPresent: T): string | T; |
| 31 | |
| 32 | set(key: string, value: string): boolean; |
| 33 | |
| 34 | remove(key: string): void; |
| 35 | } |
| 36 | |
| 37 | class LocalOnlyStorage implements Storage { |
| 38 | get<T>(key: string, ifNotPresent: T): string | T { |
no outgoing calls
no test coverage detected