Skip to content

BlockSuite API Documentation / @blocksuite/blocks / updateBlockType

Function: updateBlockType()

updateBlockType(ctx, next): void

Parameters

ctx: CommandKeyToData<"selectedBlocks"> & InitCommandCtx & UpdateBlockConfig

next

Returns

void

Source

packages/blocks/src/note-block/commands/block-type.ts:21