Skip to content

Added index.d.ts for tsx(typescript)#120

Merged
Hermanya merged 1 commit into
chart-kit:masterfrom
hirasaki1985:master
Jun 13, 2019
Merged

Added index.d.ts for tsx(typescript)#120
Hermanya merged 1 commit into
chart-kit:masterfrom
hirasaki1985:master

Conversation

@hirasaki1985

Copy link
Copy Markdown
Contributor

make each chart interfaces.

  • LineChart
  • ProgressChart
  • BarChart
  • StackedBarChart
  • PieChart
  • ContributionGraph

I have confirmed that each sample in README.md works in my local environment on tsx file.

@Hermanya Hermanya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good start. There is certainly some room for improvement:

  • better inheritance (AbstractChart should be a React.Component, and other charts should extend AbstractChart)
  • there is surely a better way to type style objects
  • better types for callbacks (not just Function)
  • type chartConfig
  • type data - this is the most challenging one

Thank you @hirasaki1985 for getting the ball rolling 👍

@Hermanya

Copy link
Copy Markdown
Contributor

now available in v3

@hirasaki1985

Copy link
Copy Markdown
Contributor Author

thank you for reviewing and approving.
I am looking forward to v3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants