Skip to content

BlockSuite API Documentation / @blocksuite/blocks / AttachmentAdapter

Class: AttachmentAdapter

Extends

Constructors

new AttachmentAdapter(undefined)

new AttachmentAdapter(): AttachmentAdapter

Returns

AttachmentAdapter

Inherited from

@blocksuite/store.BaseAdapter.constructor

Properties

configs

protected configs: Map<string, unknown>

Inherited from

@blocksuite/store.BaseAdapter.configs

Source

packages/framework/store/dist/adapter/base.d.ts:41

Methods

applyConfigs()

applyConfigs(configs): void

Parameters

configs: Map<string, unknown>

Returns

void

Inherited from

@blocksuite/store.BaseAdapter.applyConfigs

Source

packages/framework/store/dist/adapter/base.d.ts:48


fromBlockSnapshot()

fromBlockSnapshot(_payload): Promise<FromBlockSnapshotResult<Attachment>>

Parameters

_payload: FromBlockSnapshotPayload

Returns

Promise<FromBlockSnapshotResult<Attachment>>

Overrides

@blocksuite/store.BaseAdapter.fromBlockSnapshot

Source

packages/blocks/src/_common/adapters/attachment.ts:37


fromPageSnapshot()

fromPageSnapshot(_payload): Promise<FromPageSnapshotResult<Attachment>>

Parameters

_payload: FromPageSnapshotPayload

Returns

Promise<FromPageSnapshotResult<Attachment>>

Overrides

@blocksuite/store.BaseAdapter.fromPageSnapshot

Source

packages/blocks/src/_common/adapters/attachment.ts:32


fromSliceSnapshot()

fromSliceSnapshot(payload): Promise<FromSliceSnapshotResult<Attachment>>

Parameters

payload: FromSliceSnapshotPayload

Returns

Promise<FromSliceSnapshotResult<Attachment>>

Overrides

@blocksuite/store.BaseAdapter.fromSliceSnapshot

Source

packages/blocks/src/_common/adapters/attachment.ts:42


toBlockSnapshot()

toBlockSnapshot(_payload): Promise<BlockSnapshot>

Parameters

_payload: ToBlockSnapshotPayload<Attachment>

Returns

Promise<BlockSnapshot>

Overrides

@blocksuite/store.BaseAdapter.toBlockSnapshot

Source

packages/blocks/src/_common/adapters/attachment.ts:67


toPageSnapshot()

toPageSnapshot(_payload): Promise<PageSnapshot>

Parameters

_payload: ToPageSnapshotPayload<Attachment>

Returns

Promise<PageSnapshot>

Overrides

@blocksuite/store.BaseAdapter.toPageSnapshot

Source

packages/blocks/src/_common/adapters/attachment.ts:62


toSliceSnapshot()

toSliceSnapshot(payload): Promise<null | SliceSnapshot>

Parameters

payload: AttachmentToSliceSnapshotPayload

Returns

Promise<null | SliceSnapshot>

Overrides

@blocksuite/store.BaseAdapter.toSliceSnapshot

Source

packages/blocks/src/_common/adapters/attachment.ts:72


Generated using TypeDoc and typedoc-plugin-markdown.