| 6 | * A memento represents a storage utility. It can store and retrieve values, and observe changes. |
| 7 | */ |
| 8 | export interface Memento { |
| 9 | get<T>(key: string): T | undefined; |
| 10 | watch<T>(key: string): Observable<T | undefined>; |
| 11 | set<T>(key: string, value: T | undefined): void; |
| 12 | del(key: string): void; |
| 13 | clear(): void; |
| 14 | keys(): string[]; |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * A simple implementation of Memento. Used for testing. |
no outgoing calls
no test coverage detected