Usage

Save a sync cursor

tsx
import { storage } from 'kuito';

await storage.set('sync.cursor', 'page-12');
const cursor = await storage.get('sync.cursor'); // string | null
console.log(cursor ?? 'No previous sync');
await storage.delete('sync.cursor');

Signatures

ts
(key: string): Promise<string | null>

Parameters

NameTypeRequiredDescription
keystringYes—

Returns

Promise<string>

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