interface StorageService { getData<T>(key,
defaultValue): Promise<T>; getData<T>(key): Promise<undefined | T>; setData<T>(key,
data): Promise<void>; } Methods
getData
- getData<T>(key, defaultValue): Promise<T>
Parameters
- key: string
- defaultValue: T
Returns Promise<T>
- getData<T>(key): Promise<undefined | T>
Returns Promise<undefined | T>
setData
- setData<T>(key, data): Promise<void>
Returns Promise<void>
The storage service provides an interface to some data storage that allows extensions to keep state among sessions.