Skip to main content

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

NameType
Tunknown

Parameters

NameType
keystring

Returns

T