Skip to content

BlockSuite API Documentation / @blocksuite/block-std / Command

Type alias: Command()<In, Out, InData>

Command<In, Out, InData>: (ctx, next) => void

Type parameters

In extends BlockSuite.CommandDataName = never

Out extends BlockSuite.CommandDataName = never

InData extends object = object

Parameters

ctx: CommandKeyToData<In> & InitCommandCtx & InData

next

Returns

void

Source

packages/framework/block-std/src/command/types.ts:21