@witchcraft/editor
    Preparing search index...

    Type Alias CommandGroup<T, TCommand, TNestable>

    type CommandGroup<
        T extends string
        | never = string,
        TCommand extends Command<any> = Command<any>,
        TNestable extends boolean = false,
    > = {
        groupType?: T extends string ? T : never;
        icon?:
            | (new () => any)
            | { component: new () => any; props?: Record<string, any> };
        title: string;
        type: "group";
        variations: TNestable extends false
            ? TCommand[]
            : (TCommand | CommandGroup<T, TCommand, TNestable>)[];
    }

    Type Parameters

    • T extends string | never = string
    • TCommand extends Command<any> = Command<any>
    • TNestable extends boolean = false
    Index

    Properties

    groupType?: T extends string ? T : never
    icon?:
        | (new () => any)
        | { component: new () => any; props?: Record<string, any> }
    title: string
    type: "group"
    variations: TNestable extends false
        ? TCommand[]
        : (TCommand | CommandGroup<T, TCommand, TNestable>)[]