FDO SDK API Reference
    Preparing search index...

    Interface AttributeDefUnion<N, Cardinality, AttributesInUnion, Type>

    This interface defines an attribute that is a union of two or more other attributes. Allowed values of this attribute are a union of the types of attributes in the union.

    interface AttributeDefUnion<
        N extends string,
        Cardinality extends CardinalityType,
        AttributesInUnion extends
            AttributeDef<string, AttributeAnyType, CardinalityType>[],
        Type extends AttributeAnyType = AttributesInUnion[number]["~type"],
    > {
        "~type": Type;
        allowedAttributesInUnion?: AttributesInUnion;
        cardinality: Cardinality;
        defType: "union";
        description?: string | string[];
        name: N;
        pid: string;
        validationStrategyForCombination?: "anyof" | "allof";
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    "~type": Type
    allowedAttributesInUnion?: AttributesInUnion
    cardinality: Cardinality
    defType: "union"
    description?: string | string[]
    name: N
    pid: string
    validationStrategyForCombination?: "anyof" | "allof"