bn.getStorageSync
▸ getStorageSync<T
>(key
): T
description
Gets the specified object synchronously from the local cache key The content of.
example
try {
const value = bn.getStorageSync('key')
if (value) {
// From the something with return value
}
} catch (error) {
// From the something when catch error
}
Type parameters
Name | Type |
---|---|
T | unknown |
Parameters
Name | Type |
---|---|
key | string |
Returns
T