BlockSuite API Documentation / @blocksuite/block-std / CommandManager
Class: CommandManager
Constructors
new CommandManager(std)
new CommandManager(
std
):CommandManager
Parameters
• std: BlockStdScope
Returns
Source
block-std/src/command/index.ts:67
Properties
_commands
private
_commands:Map
<string
,Command
<never
,never
,Object
>>
Source
block-std/src/command/index.ts:65
std
std:
BlockStdScope
Source
block-std/src/command/index.ts:67
Methods
_getCommandCtx()
private
_getCommandCtx():InitCommandCtx
Returns
Source
block-std/src/command/index.ts:69
add()
add<
N
>(name
,command
):CommandManager
Type parameters
• N extends keyof Commands
Parameters
• name: N
• command: Commands
[N
]
Returns
Source
block-std/src/command/index.ts:75
createChain()
createChain(
methods
,_cmds
):Chain
<Object
>
Parameters
• methods: Record
<keyof Commands
, unknown
>
• _cmds: Command
<never
, never
, Object
>[]
Returns
Chain
<Object
>
Source
block-std/src/command/index.ts:84
getChainCtx()
getChainCtx<
T
>(chain
):T
Type parameters
• T extends CommandContext
Parameters
• chain: Chain
<T
>
Returns
T
Source
block-std/src/command/index.ts:220
pipe()
pipe():
Chain
<InitCommandCtx
>
Returns
Source
block-std/src/command/index.ts:199
Generated using TypeDoc and typedoc-plugin-markdown.