BlockSuite API Documentation / @blocksuite/block-std / CommandManager
Class: CommandManager ​
Contents ​
Constructors ​
new CommandManager(std) ​
new CommandManager(
std):CommandManager
Parameters ​
• std: BlockStdScope
Returns ​
Source ​
block-std/src/command/index.ts:72
Properties ​
_commands ​
private_commands:Map<string,Command<never,never,Object>>
Source ​
block-std/src/command/index.ts:70
std ​
std:
BlockStdScope
Source ​
block-std/src/command/index.ts:72
Methods ​
_getCommandCtx() ​
private_getCommandCtx():InitCommandCtx
Returns ​
Source ​
block-std/src/command/index.ts:74
add() ​
add<
N>(name,command):CommandManager
Type parameters ​
• N extends never
Parameters ​
• name: N
• command: Commands[N]
Returns ​
Source ​
block-std/src/command/index.ts:80
createChain() ​
createChain(
methods,_cmds):Chain<Object>
Parameters ​
• methods: Record<never, unknown>
• _cmds: Command<never, never, Object>[]
Returns ​
Chain<Object>
Source ​
block-std/src/command/index.ts:89
pipe() ​
pipe():
Chain<InitCommandCtx>
Returns ​
Chain<InitCommandCtx>
Source ​
block-std/src/command/index.ts:204
Generated using typedoc-plugin-markdown and TypeDoc