i2 Connect SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/i2connect > records > PropertyValuesFromPossibleValues

    records.PropertyValuesFromPossibleValues type

    A utility type that represents the values from 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 1.0

    Type Parameters

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