(key: string, value: string)
| 100 | } |
| 101 | |
| 102 | set(key: string, value: string): boolean { |
| 103 | const setBySession = this.setSession(key, value); |
| 104 | const setByLocal = localStorage.set(key, value); |
| 105 | return setBySession || setByLocal; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | export const sessionThenLocalStorage = new SessionThenLocalStorage(); |
nothing calls this directly
no test coverage detected