(value: T | T[] | undefined)
| 107 | * into a consistently typed array. |
| 108 | */ |
| 109 | export function normalizeSoapArray<T>(value: T | T[] | undefined): T[] { |
| 110 | if (!value) return [] |
| 111 | return Array.isArray(value) ? value : [value] |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Coerces a SOAP scalar to a boolean. The XML parser returns leaf text as strings, |