API > @blocksuite/store > StoreOptions
Interface: StoreOptions<Flags>
​
Example ​
ts
const workspace = new Workspace({
isSSR: typeof window === 'undefined'
})
const workspace = new Workspace({
isSSR: typeof window === 'undefined'
})
Extends ​
Type parameters ​
Parameter | Default |
---|---|
Flags extends Record < string , unknown > | BlockSuiteFlags |
Properties ​
awareness ​
optional
awareness:Awareness
<RawAwarenessState
<Flags
> >
Defined In ​
packages/store/src/workspace/store.ts:59
blobStorages ​
optional
blobStorages: (id
) =>BlobStorage
[]
Defined In ​
packages/store/src/workspace/store.ts:62
defaultFlags ​
optional
defaultFlags:Partial
<Flags
>
Defined In ​
packages/store/src/workspace/store.ts:61
id ​
id:
string
Defined In ​
packages/store/src/workspace/store.ts:57
idGenerator ​
optional
idGenerator:IdGenerator
|Generator
Defined In ​
packages/store/src/workspace/store.ts:60
isSSR ​
optional
isSSR:boolean
Defined In ​
packages/store/src/workspace/store.ts:51
Inherited from ​
providerCreators ​
optional
providerCreators:DocProviderCreator
[]
Defined In ​
packages/store/src/workspace/store.ts:58