| 7 | } |
| 8 | |
| 9 | export interface StorageInterface { |
| 10 | get<T>(name: string): Promise<T | null>; |
| 11 | set<T>(name: string, value: T | null): Promise<T | null>; |
| 12 | remove(name: string): Promise<void>; |
| 13 | each<R>(callback: (item: string, value: unknown) => R | Promise<R>): Promise<R[]>; |
| 14 | on<T>(name: string, callback: (value: T | null) => void): () => void; |
| 15 | } |
| 16 | |
| 17 | export interface StorageClass { |
| 18 | new (config?: StorageConfig | undefined): StorageInterface; |
no outgoing calls
no test coverage detected