From 059f0bc252923b8d547cd907b8ffd9bb0628f210 Mon Sep 17 00:00:00 2001 From: FlashSystems Date: Mon, 12 Mar 2018 21:27:23 +0100 Subject: [PATCH] The add and append method accept a set as an input type. --- types/snapsvg/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/snapsvg/index.d.ts b/types/snapsvg/index.d.ts index f9719af863..d937f1dff3 100644 --- a/types/snapsvg/index.d.ts +++ b/types/snapsvg/index.d.ts @@ -136,12 +136,14 @@ declare namespace Snap { export interface Element { add(el:Snap.Element):Snap.Element; + add(el:Snap.Set):Snap.Element; addClass(value:string):Snap.Element; after(el:Snap.Element):Snap.Element; align(el: Snap.Element, way: string):Snap.Element; animate(animation:any):Snap.Element; animate(attrs:{[attr:string]:string|number|boolean|any},duration:number,easing?:(num: number)=> number,callback?:()=>void):Snap.Element; append(el:Snap.Element):Snap.Element; + append(el:Snap.Set):Snap.Element; appendTo(el:Snap.Element):Snap.Element; asPX(attr:string,value?:string):number; //TODO: check what is really returned attr(param: "viewBox"): BBox;