API > @blocksuite/store > Store
Class: Store ​
Constructors ​
constructor ​
new Store(
__namedParameters
=...
):Store
Parameters ​
Parameter | Type |
---|---|
__namedParameters | StoreOptions < BlockSuiteFlags > |
Returns ​
Defined In ​
packages/store/src/workspace/store.ts:70
Properties ​
awarenessStore ​
readonly
awarenessStore:AwarenessStore
<BlockSuiteFlags
>
Defined In ​
packages/store/src/workspace/store.ts:67
doc ​
readonly
doc:BlockSuiteDoc
Defined In ​
packages/store/src/workspace/store.ts:64
id ​
readonly
id:string
Defined In ​
packages/store/src/workspace/store.ts:63
idGenerator ​
readonly
idGenerator:IdGenerator
Defined In ​
packages/store/src/workspace/store.ts:68
providers ​
readonly
providers:DocProvider
[] =[]
Defined In ​
packages/store/src/workspace/store.ts:65
spaces ​
readonly
spaces:Map
<string
,Space
<Record
<string
,any
> > >
Defined In ​
packages/store/src/workspace/store.ts:66
Methods ​
addSpace ​
addSpace(
space
):void
Parameters ​
Parameter | Type |
---|---|
space | Space < Record < string , any > > |
Returns ​
void
Defined In ​
packages/store/src/workspace/store.ts:129
registerProvider ​
registerProvider(
providerCreator
,id
?):DocProvider
Parameters ​
Parameter | Type |
---|---|
providerCreator | DocProviderCreator |
id ? | string |
Returns ​
Defined In ​
packages/store/src/workspace/store.ts:120
removeSpace ​
removeSpace(
space
):void
Parameters ​
Parameter | Type |
---|---|
space | Space < Record < string , any > > |
Returns ​
void
Defined In ​
packages/store/src/workspace/store.ts:133