Skip to content
module@warp-drive/experiments/storage @experimental

Type Alias KeyFn

ts
type KeyFn = (obj) => string;

Defined in: storage/-private/storage-infra.ts:43

A function which generates a unique primary-key string for a given LocalResource or SessionResource instance.

Use functions when you want to create more than one instance of a resource type, each with its own persisted data.

Parameters

obj

any

Returns

string

Released under the MIT License.