Skip to content

@sqlrooms/blocks / StatefulBlockContext

Type Alias: StatefulBlockContext<TRoomState> ​

StatefulBlockContext<TRoomState> = object

Type Parameters ​

Type ParameterDefault type
TRoomStateunknown

Properties ​

blockId ​

blockId: BlockId


blockType ​

blockType: BlockType


title? ​

optional title?: string


attrs? ​

optional attrs?: Record<string, unknown>


getState ​

getState: () => TRoomState

Returns ​

TRoomState