You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Workaround: .ReplaceChildren([||]: string[])
The text was updated successfully, but these errors were encountered:
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[])
The text was updated successfully, but these errors were encountered: