Usage

Read one small startup value synchronously.

tsx
// Read one small startup value synchronously.
import { storage } from 'kuito';

const lastAccount = storage.peek('account.last');
console.log(lastAccount ?? 'Choose an account');

Signatures

ts
(key: string): string | null

Parameters

NameTypeRequiredDescription
keystringYes—

Returns

string

Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.