Skip to content

command-handlers/command-handler

Base class and interfaces for command handlers.

Class Description
CommandHandler Base class for command handlers. Unlike the Obsidian Command interface, handlers are never mutated by Obsidian. The buildCommand method produces a plain Command object for registration.
Interface Description
CommandHandlerConstructorParams Parameters for creating a command handler.
CommandHandlerRegistrationContext Context provided to command handlers during registration.