Quick question and I'm sure someone will have a quick answer for this one.
I am trying to use document.
document.createElement("button", "option");
typescript does not like this due to the second argument, it complains that it is only expecting one argument not two to be passed. In vanilla JS two arguments are acceptable.
How can I get the typescript compiler to allow this?