-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to TypeScript #57
Conversation
@himynameisdave it would be great if you could merge this in. Thanks. |
Any updates about this? |
For the moment adding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fenwikk thanks for writing these definitions. 🎉 💯 I have a few questions around the added dependencies, but otherwise this looks good to me!
export let maxSlices = 3; | ||
export let data: Data; | ||
export let title: string = ''; | ||
export let type: ChartType = 'line'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] I get that these types are ambient, but generally I prefer to import and use types directly (using type imports). Not sure if this is standard/best practice though, thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesnt matter to me. could change it to a non global declaration file if you want
Ping @fenwikk, let me know if there's anything I can do to help get this over the finish line. |
Ping @fenwikk, sorry to be annoying here (as I really appreciate the work you've already done here), but if you're unable to address the comments I'd be happy to wrap things up here, just let me know 🙂 |
any news on this? Can I help somehow? |
Any news on this? |
sorry guys just been busy ill fix whatever needs fixing |
Added TypeScript and annotations for a better developer experience for those who like to have everything typed. "frappe-charts" isn't typed either so most of the types in the
.d.ts
are option types for that package.Closes #57