Skip to content

BlockSuite API Documentation / @blocksuite/store / BaseAdapter

Class: abstract BaseAdapter<AdapterTarget>

Extended by

Type parameters

AdapterTarget = unknown

Constructors

new BaseAdapter(undefined)

new BaseAdapter<AdapterTarget>(): BaseAdapter<AdapterTarget>

Returns

BaseAdapter<AdapterTarget>

Properties

configs

protected configs: Map<string, unknown>

Source

packages/framework/store/src/adapter/base.ts:49

Methods

applyConfigs()

applyConfigs(configs): void

Parameters

configs: Map<string, unknown>

Returns

void

Source

packages/framework/store/src/adapter/base.ts:70


fromBlockSnapshot()

abstract fromBlockSnapshot(payload): Promise<FromBlockSnapshotResult<AdapterTarget>>

Parameters

payload: FromBlockSnapshotPayload

Returns

Promise<FromBlockSnapshotResult<AdapterTarget>>

Source

packages/framework/store/src/adapter/base.ts:54


fromPageSnapshot()

abstract fromPageSnapshot(payload): Promise<FromPageSnapshotResult<AdapterTarget>>

Parameters

payload: FromPageSnapshotPayload

Returns

Promise<FromPageSnapshotResult<AdapterTarget>>

Source

packages/framework/store/src/adapter/base.ts:51


fromSliceSnapshot()

abstract fromSliceSnapshot(payload): Promise<FromSliceSnapshotResult<AdapterTarget>>

Parameters

payload: FromSliceSnapshotPayload

Returns

Promise<FromSliceSnapshotResult<AdapterTarget>>

Source

packages/framework/store/src/adapter/base.ts:57


toBlockSnapshot()

abstract toBlockSnapshot(payload): Promise<BlockSnapshot>

Parameters

payload: ToBlockSnapshotPayload<AdapterTarget>

Returns

Promise<BlockSnapshot>

Source

packages/framework/store/src/adapter/base.ts:63


toPageSnapshot()

abstract toPageSnapshot(payload): Promise<PageSnapshot>

Parameters

payload: ToPageSnapshotPayload<AdapterTarget>

Returns

Promise<PageSnapshot>

Source

packages/framework/store/src/adapter/base.ts:60


toSliceSnapshot()

abstract toSliceSnapshot(payload): Promise<null | SliceSnapshot>

Parameters

payload: ToSliceSnapshotPayload<AdapterTarget>

Returns

Promise<null | SliceSnapshot>

Source

packages/framework/store/src/adapter/base.ts:66


Generated using TypeDoc and typedoc-plugin-markdown.