i2 Connect SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/i2connect > utility > PropertyValuesFromPossibleValues

    utility.PropertyValuesFromPossibleValues type

    A utility type that represents the values of a property type that has possible values.

    Signature:

    type PropertyValuesFromPossibleValues<TPropertyType extends schema.IPropertyType> = TPropertyType['possibleValues'] extends ReadonlyArray<{
            value: infer U;
            displayValue: string;
        }> ? U extends string ? U : never : never;
    

    References: schema.IPropertyType

    Introduced: API version 2.0

    Type Parameters

    Parameter Type Description
    TPropertyType extends schema.IPropertyType The property type to retrieve values from.
    In this article
    Back to top © N. Harris Computer Corporation