CommandApi: {
    open: boolean;
    setOpen: (open: boolean) => void;
    setValue: (value: string) => void;
    value: string;
}

Imperative handle returned by enhanceCommand.

Type declaration

  • Readonlyopen: boolean

    Whether the hosting <dialog> is open. Always true for an inline palette.

  • setOpen: (open: boolean) => void

    Open (clearing the query and focusing the input) or close the hosting <dialog>.

  • setValue: (value: string) => void

    Set the filter query: updates the input and re-filters the list.

  • Readonlyvalue: string

    The current filter query.