SVG has a beginElement() method. But I cant seem to locate it in lib.d.ts.
Currently I have to cast the variable to 'any' to call it from TypeScript without any errors.
Can someone point me to the exact TypeScript class that contains that method?
The definition for that is not present. However you can quite easily add it yourself as typescript interfaces are open-ended:
interface SVGElement extends Element {
    beginElement(): SVGElement;
}
var foo = new SVGElement();
foo.beginElement();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With