clide-js
    Preparing search index...

    Type Alias OptionArgumentType<T, TNargs>

    OptionArgumentType: TNargs extends number
        ? TNargs extends 0
        | 1
            ? OptionPrimitiveType<T>
            : OptionPrimitiveType<T> extends infer T extends OptionPrimitiveType
                ? T extends readonly any[] ? T : T[]
                : never
        : OptionPrimitiveType<T>

    Get the argument type for an option considering the number of arguments it accepts.

    Type Parameters