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