EnhanceCommandOptions: {
    hotkey?: string;
    onCommand?: (value: string, item: HTMLElement) => void;
}

Options for enhanceCommand.

Type declaration

  • Optionalhotkey?: string

    Lowercased key that, with Cmd/Ctrl, opens the palette's dialog.

  • OptionalonCommand?: (value: string, item: HTMLElement) => void

    Called with the command's value when a command runs.