I genuinely don't understand - how could Typescript provide a separate API on top of this? I usually do not expect Typescript to start generating code and APIs for me.
Also, Typescript is adding types on top of the JavaScript language, not the DOM API.
Also, Typescript is adding types on top of the JavaScript language, not the DOM API.