SnapSVG-Animator icon indicating copy to clipboard operation
SnapSVG-Animator copied to clipboard

TypeScript definitions and wiki docs

Open aaronbeall opened this issue 7 years ago • 2 comments

I'm trying to write TypeScript definitions (.d.ts) for the API following the wiki. However when I log the stuff at runtime:

const anim = new SVGAnim(data, width, height, fps)
console.log("SVGAnim", anim)
console.log("MovieClip", anim.mc)

I see a lot of stuff not mentioned in the wiki, especially on MovieClip, including helpful stuff we are using like mc.loops. Is the wiki not up-to-date?

FYI what I have so far for TS type defs is here: https://gist.github.com/aaronbeall/cd5b302656f60a038d45435ab6f4068c

aaronbeall avatar Dec 08 '17 17:12 aaronbeall

Seems this repository is abandoned, I also found some weird and missing things. The .d.ts files are usefull, thanks for those

herrKlein avatar Dec 13 '17 08:12 herrKlein

typescript is taking you to hell

zavr-1 avatar May 22 '19 14:05 zavr-1