Skip to content

BlockSuite API Documentation / @blocksuite/store / Store

Class: Store

Constructors

new Store(__namedParameters)

new Store(__namedParameters): Store

Parameters

__namedParameters: StoreOptions<BlockSuiteFlags>= undefined

Returns

Store

Source

packages/framework/store/src/store/store.ts:85

Properties

awarenessStore

readonly awarenessStore: AwarenessStore<BlockSuiteFlags>

Source

packages/framework/store/src/store/store.ts:79


awarenessSync

readonly awarenessSync: AwarenessEngine

Source

packages/framework/store/src/store/store.ts:83


doc

readonly doc: BlockSuiteDoc

Source

packages/framework/store/src/store/store.ts:77


docSync

readonly docSync: DocEngine

Source

packages/framework/store/src/store/store.ts:82


id

readonly id: string

Source

packages/framework/store/src/store/store.ts:76


idGenerator

readonly idGenerator: IdGenerator

Source

packages/framework/store/src/store/store.ts:80


spaces

readonly spaces: Map<string, Space<Record<string, any>>>

Source

packages/framework/store/src/store/store.ts:78

Methods

addSpace()

addSpace(space): void

Parameters

space: Space<Record<string, any>>

Returns

void

Source

packages/framework/store/src/store/store.ts:145


removeSpace()

removeSpace(space): void

Parameters

space: Space<Record<string, any>>

Returns

void

Source

packages/framework/store/src/store/store.ts:149