@designliquido/xpath
    Preparing search index...

    Function promoteInContext

    • Apply type promotion in a specific context Used by operators to normalize operand types

      Parameters

      • value: any

        The value to promote

      • fromType: string

        Current type name

      • context: PromotionContext

        The promotion context

      • OptionaltargetType: string

        Optional explicit target type

      Returns { value: any; type: string }

      • The promoted value and resulting type