IUseCommandReturn

interface
CommandPalette

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

register
required
(cmd: ICommand) => () => void
unregister
required
(id: string) => void
commands
required
ComputedRef<ReadonlyArray<ICommand>>
open
required
() => void
close
required
() => void
isOpen
required
Ref<boolean>