Skip to content

IDataAdapter

Defined in: store/adapters/DataAdapter.ts:41

Type Parameters

D extends DataSchema = DataSchema

Properties

onDataChange

onDataChange: Signal<(detail) => void>

Defined in: store/adapters/DataAdapter.ts:47

Methods

clear()

clear<K>(key): void

Defined in: store/adapters/DataAdapter.ts:46

Type Parameters

K extends string | number | symbol

Parameters

key

K

Returns

void


get()

get(): D

Defined in: store/adapters/DataAdapter.ts:45

Returns

D


load()

load<K>(key): undefined | D[K]

Defined in: store/adapters/DataAdapter.ts:42

Type Parameters

K extends string | number | symbol

Parameters

key

K

Returns

undefined | D[K]


save()

save<K>(key, data): D

Defined in: store/adapters/DataAdapter.ts:43

Type Parameters

K extends string | number | symbol

Parameters

key

K

data

D[K]

Returns

D


set()

set(data, merge?): D

Defined in: store/adapters/DataAdapter.ts:44

Parameters

data

DeepPartial<D>

merge?

boolean

Returns

D