Skip to content
providerkit
GitHub

DraftStorage

Defined in: react/src/drafts.ts:25

load(scope, options): Promise<unknown>;

Defined in: react/src/drafts.ts:26

Parameter Type
scope DraftScope
options { signal: AbortSignal; }
options.signal AbortSignal

Promise<unknown>


save(
scope,
draft,
options
): Promise<void>;

Defined in: react/src/drafts.ts:29

Store only under this exact scope. Honor signal before committing an asynchronous write. The host owns encryption, access control and deletion after expiresAt.

Parameter Type
scope DraftScope
draft StoredDraft
options { signal: AbortSignal; }
options.signal AbortSignal

Promise<void>