interface Persistence { getItem(key: string): Promise<null | Uint8Array>; setItem(key: string,
value: Uint8Array): Promise<void>; } Methods
getItem
- getItem(key): Promise<null | Uint8Array>
Returns Promise<null | Uint8Array>
setItem
- setItem(key, value): Promise<void>
Parameters
- key: string
- value: Uint8Array
Returns Promise<void>