Skip to content

@pumpkin-plugins/plugin-kit API / commands / CommandNodeLike

Interface: CommandNodeLike ​

Defined in: tools/plugin-kit/src/commands.ts:14

A node of a command tree being built. The host's own command classes satisfy it.

Extended by ​

Methods ​

executeWithHandlerId() ​

executeWithHandlerId(id): unknown

Defined in: tools/plugin-kit/src/commands.ts:18

Makes the node runnable: the host calls the handler registered under this id.

Parameters ​

id ​

number

Returns ​

unknown


then() ​

then(child): unknown

Defined in: tools/plugin-kit/src/commands.ts:16

Adds a child node and transfers ownership of that child to this node.

Parameters ​

child ​

CommandNodeLike

Returns ​

unknown

Pumpkin Plugins documentation