()
| 50 | } |
| 51 | |
| 52 | async fullState() { |
| 53 | const value = await this.getStorage(); |
| 54 | const hasValue = this.containsValue(value) && this.refetchTtlValid(value); |
| 55 | const isValid = this.ttlValid(value); |
| 56 | return { |
| 57 | value, |
| 58 | hasValue, |
| 59 | isValid, |
| 60 | refetch: hasValue && !isValid, |
| 61 | }; |
| 62 | } |
| 63 | |
| 64 | async getValue(): Promise<T | null> { |
| 65 | const value = await this.getStorage(); |
no test coverage detected