DomElement.ReplaceChildren can't be used easily with empty params because of overload resolution:
This is defined in WIG as such: "replaceChildren" => !+(T<string> + Node) ^-> T<unit>. This is a common concern for every method that we generate multiple ParamArray overloads for (!+ helper operator does that), so best to put in a piece of logic in WIG to create an empty overload too in such cases.
DomElement.ReplaceChildren
can't be used easily with empty params because of overload resolution:This is defined in WIG as such:
"replaceChildren" => !+(T<string> + Node) ^-> T<unit>
. This is a common concern for every method that we generate multipleParamArray
overloads for (!+
helper operator does that), so best to put in a piece of logic in WIG to create an empty overload too in such cases.Workaround:
.ReplaceChildren([||]: string[])