@servicenow/sdk - v4.4.1
    Preparing search index...

    Interface ChoiceSupportOption<Value>

    interface ChoiceSupportOption<Value = any> {
        category: string;
        choices: { description: string; value: Value }[];
        default?: Value | { value: Value }[];
        deprecated?: string | true;
        description: string;
        name?: string;
        type: "choice";
    }

    Type Parameters

    • Value = any

    Hierarchy (View Summary)

    Index

    Properties

    category: string

    Usually you can use CoreCategoryType

    choices: { description: string; value: Value }[]
    default?: Value | { value: Value }[]
    deprecated?: string | true

    Indicate that the option is deprecated.

    Use a string to add an extra message to --help for the option, for example to suggest a replacement option.

    description: string

    Description to be displayed in --help. If omitted, the option won't be shown at all in --help.

    name?: string
    type: "choice"

    The type of the option.

    When passing a type other than the ones listed below, the option is treated as taking any string as argument, and --option <${type}> will be displayed in --help.