CommandsOf<C>: C extends {
        commands: infer E extends {
            [K in string]: Command
        };
    }
    ? {
        -readonly [K in keyof E as string extends K
            ? never
            : K]: E[K]
    }
    : EmptyElementSet<Command>

Extract the type of a cluster's commands.

Type Parameters

  • C