@designliquido/xpath
    Preparing search index...

    Function promoteNumericValue

    • Promote a numeric value from one type to another Follows XPath 2.0 type promotion rules

      Parameters

      • value: any

        The value to promote (should already be validated as fromType)

      • fromType: string

        The source type name

      • toType: string

        The target type name

      Returns any

      The promoted value (or the original value if types match)

      Error if promotion is not allowed