Interface IStorageProvider
interface IStorageProvider { getItem(key): null | string | Promise<null | string>; removeItem(key): void | Promise<string> | Promise<void>; setItem(key,
value): string | void | Promise<string> | Promise<void>; } Methods
getItem
- getItem(key): null | string | Promise<null | string>
Returns null | string | Promise<null | string>
removeItem
- removeItem(key): void | Promise<string> | Promise<void>
Returns void | Promise<string> | Promise<void>
setItem
- setItem(key, value): string | void | Promise<string> | Promise<void>
Returns string | void | Promise<string> | Promise<void>
A storage provider that supports asynchronous storage of arbitrary data as strings