mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
.g and .group arguments are optional in snapsvg
Per these docs: http://snapsvg.io/docs/#Paper.g The parameters to these functions are optional. This change stops the TypeScript compiler complaining when you call them with no arguments. Also, the return type of `g` and `group` should match (they are aliases); and `any` has the benefit over `Object` here of allowing code like `s.g().attr({id: "x"});`
This commit is contained in:
parent
5c59a734fd
commit
0eeca7cdf4
4
snapsvg/snapsvg.d.ts
vendored
4
snapsvg/snapsvg.d.ts
vendored
@ -216,8 +216,8 @@ declare module Snap {
|
||||
clear():void;
|
||||
el(name:string, attr:Object):Snap.Element;
|
||||
gradient(gradient:string):any;
|
||||
g(varargs:any):Object;
|
||||
group(el:any,...els:any[]):any;
|
||||
g(varargs?:any):any;
|
||||
group(el?:any,...els:any[]):any;
|
||||
mask(varargs:any):Object;
|
||||
ptrn(x:number,y:number,width:number,height:number,vbx:number,vby:number,vbw:number,vbh:number):Object;
|
||||
svg(x:number,y:number,width:number,height:number,vbx:number,vby:number,vbw:number,vbh:number):Object;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user