@sqlrooms/documents / CreateBlockDocumentCommandsOptions
Type Alias: CreateBlockDocumentCommandsOptions<TRoomState>
CreateBlockDocumentCommandsOptions<
TRoomState> =object
Configuration for a reusable block-document command family.
allowedBlockTypes constrains generic block mutations. If it includes statefulBlock, an individual stateful block is accepted only when its blockType is also configured in statefulBlockTypes.
Type Parameters
| Type Parameter | Default type |
|---|---|
TRoomState extends BlockDocumentCommandState | BlockDocumentCommandState |
Properties
artifactType?
optionalartifactType?:string
artifactLabel?
optionalartifactLabel?:string
commandNamespace?
optionalcommandNamespace?:string
commandGroup?
optionalcommandGroup?:string
defaultTitle?
optionaldefaultTitle?:string
statefulBlockTypes?
optionalstatefulBlockTypes?:BlockDocumentStatefulBlockCommandType<TRoomState>[]
allowedBlockTypes?
optionalallowedBlockTypes?: readonlyBlockDocumentBlock["type"][]
Top-level block kinds accepted by generic create, append, insert, and update commands. Omit to accept every block kind.
When statefulBlock is allowed, its blockType must also be present in statefulBlockTypes.