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

Type Alias KeyFn ​

ts
type KeyFn = (obj: any) => string;

Defined in: warp-drive-packages/experiments/src/storage/-private/storage-infra.ts:46

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.