Closed dhckdaks closed 1 year ago
addTo() function of SVG() has second parameter .js. But addTo() doesn't have second parameter in .d.ts.
addTo()
class Dom extends EventTarget { ... addTo(parent: Dom | HTMLElement | string): this // no second parameter ... }
addTo (parent, i) { // there is second parameter return makeInstance(parent).put(this, i) }
Feel free to create a pr to add it to the definition :)
Bug report
addTo()
function of SVG() has second parameter .js. But addTo() doesn't have second parameter in .d.ts.Fiddle
svg.js.d.ts
src/elements/Dom.js