fnando / sparkline

Generate SVG sparklines with JavaScript without any external dependency.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any chance you could add typescript support to sparkline?

Laro88 opened this issue · comments

sparkline works fine in Vue3 but vite is not happy with the lack of .d.ts file.
I have handcrafted a .d.ts file for the sparkline function:

//sparkline.d.ts in the dist folder
export  default function sparkline(svg_html_ref: any, data:any[], options?:any) : void;