BlockSuite API Documentation / @blocksuite/store / BaseAdapter
Class: abstract
BaseAdapter<AdapterTarget> ​
Contents ​
Type parameters ​
• AdapterTarget = unknown
Constructors ​
new BaseAdapter(undefined) ​
new BaseAdapter<
AdapterTarget
>():BaseAdapter
<AdapterTarget
>
Returns ​
BaseAdapter
<AdapterTarget
>
Methods ​
abstract
fromBlockSnapshot() ​
abstract
fromBlockSnapshot(payload
):Promise
<FromBlockSnapshotResult
<AdapterTarget
>>
Parameters ​
• payload: FromBlockSnapshotPayload
Returns ​
Promise
<FromBlockSnapshotResult
<AdapterTarget
>>
Source ​
packages/store/src/adapter/base.ts:52
abstract
fromPageSnapshot() ​
abstract
fromPageSnapshot(payload
):Promise
<FromPageSnapshotResult
<AdapterTarget
>>
Parameters ​
• payload: FromPageSnapshotPayload
Returns ​
Promise
<FromPageSnapshotResult
<AdapterTarget
>>
Source ​
packages/store/src/adapter/base.ts:49
abstract
fromSliceSnapshot() ​
abstract
fromSliceSnapshot(payload
):Promise
<FromSliceSnapshotResult
<AdapterTarget
>>
Parameters ​
• payload: FromSliceSnapshotPayload
Returns ​
Promise
<FromSliceSnapshotResult
<AdapterTarget
>>
Source ​
packages/store/src/adapter/base.ts:55
abstract
toBlockSnapshot() ​
abstract
toBlockSnapshot(payload
):Promise
<BlockSnapshot
>
Parameters ​
• payload: ToBlockSnapshotPayload
<AdapterTarget
>
Returns ​
Promise
<BlockSnapshot
>
Source ​
packages/store/src/adapter/base.ts:61
abstract
toPageSnapshot() ​
abstract
toPageSnapshot(payload
):Promise
<PageSnapshot
>
Parameters ​
• payload: ToPageSnapshotPayload
<AdapterTarget
>
Returns ​
Promise
<PageSnapshot
>
Source ​
packages/store/src/adapter/base.ts:58
abstract
toSliceSnapshot() ​
abstract
toSliceSnapshot(payload
):Promise
<SliceSnapshot
>
Parameters ​
• payload: ToSliceSnapshotPayload
<AdapterTarget
>
Returns ​
Promise
<SliceSnapshot
>
Source ​
packages/store/src/adapter/base.ts:64
Generated using typedoc-plugin-markdown and TypeDoc