Skip to content

BlockSuite API Documentation / @blocksuite/store / Store

Class: Store

Constructors

new Store()

new Store(__namedParameters): Store

Parameters

__namedParameters: StoreOptions<BlockSuiteFlags>= undefined

Returns

Store

Source

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

Properties

awarenessStore

readonly awarenessStore: AwarenessStore<BlockSuiteFlags>

Source

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


awarenessSync

readonly awarenessSync: AwarenessEngine

Source

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


doc

readonly doc: BlockSuiteDoc

Source

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


docSync

readonly docSync: DocEngine

Source

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


id

readonly id: string

Source

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


idGenerator

readonly idGenerator: IdGenerator

Source

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


spaces

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

Source

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

Methods

addSpace()

addSpace(space): void

Parameters

space: Space<Record<string, any>>

Returns

void

Source

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


removeSpace()

removeSpace(space): void

Parameters

space: Space<Record<string, any>>

Returns

void

Source

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