API > @blocksuite/store > BaseAdapter
Class: BaseAdapter<AdapterTarget>
​
Extended By ​
Constructors ​
constructor ​
new BaseAdapter<
AdapterTarget
>():BaseAdapter
<AdapterTarget
>
Type parameters ​
Parameter | Default |
---|---|
AdapterTarget | unknown |
Returns ​
BaseAdapter
< AdapterTarget
>
Methods ​
fromBlockSnapshot ​
abstract
fromBlockSnapshot(payload
):Promise
<FromBlockSnapshotResult
<AdapterTarget
> >
Parameters ​
Parameter | Type |
---|---|
payload | FromBlockSnapshotPayload |
Returns ​
Promise
< FromBlockSnapshotResult
< AdapterTarget
> >
Defined In ​
packages/store/src/adapter/base.ts:50
fromPageSnapshot ​
abstract
fromPageSnapshot(payload
):Promise
<FromPageSnapshotResult
<AdapterTarget
> >
Parameters ​
Parameter | Type |
---|---|
payload | FromPageSnapshotPayload |
Returns ​
Promise
< FromPageSnapshotResult
< AdapterTarget
> >
Defined In ​
packages/store/src/adapter/base.ts:47
fromSliceSnapshot ​
abstract
fromSliceSnapshot(payload
):Promise
<FromSliceSnapshotResult
<AdapterTarget
> >
Parameters ​
Parameter | Type |
---|---|
payload | FromSliceSnapshotPayload |
Returns ​
Promise
< FromSliceSnapshotResult
< AdapterTarget
> >
Defined In ​
packages/store/src/adapter/base.ts:53
toBlockSnapshot ​
abstract
toBlockSnapshot(payload
):Promise
<BlockSnapshot
>
Parameters ​
Parameter | Type |
---|---|
payload | ToBlockSnapshotPayload < AdapterTarget > |
Returns ​
Promise
< BlockSnapshot
>
Defined In ​
packages/store/src/adapter/base.ts:59
toPageSnapshot ​
abstract
toPageSnapshot(payload
):Promise
<PageSnapshot
>
Parameters ​
Parameter | Type |
---|---|
payload | ToPageSnapshotPayload < AdapterTarget > |
Returns ​
Promise
< PageSnapshot
>
Defined In ​
packages/store/src/adapter/base.ts:56
toSliceSnapshot ​
abstract
toSliceSnapshot(payload
):Promise
<SliceSnapshot
>
Parameters ​
Parameter | Type |
---|---|
payload | ToSliceSnapshotPayload < AdapterTarget > |
Returns ​
Promise
< SliceSnapshot
>
Defined In ​
packages/store/src/adapter/base.ts:62