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
getChainCtx() ​
getChainCtx<
T
>(chain
):T
Type parameters ​
• T extends CommandData
Parameters ​
• chain: Chain
<T
>
Returns ​
T
Source ​
block-std/src/command/index.ts:225
pipe() ​
pipe():
Chain
<InitCommandCtx
>
Returns ​
Source ​
block-std/src/command/index.ts:204
Generated using typedoc-plugin-markdown and TypeDoc