Skip to content

CommandRegistrar

A registrar for commands.

Import:

import type { CommandRegistrar } from 'obsidian-dev-utils/obsidian/command-registrar';

Signature:

export interface CommandRegistrar

Methods

MethodReturnsDescription
addCommand(command)voidAdds a command to the registrar.
removeCommand(commandId)voidRemoves a command from the registrar.

Links to this page: