Skip to content
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

typescript(vx-threshold): re-write package in TypeScript #533

Merged
merged 6 commits into from
Oct 10, 2019

Conversation

williaster
Copy link
Collaborator

@williaster williaster commented Oct 2, 2019

🚀 Enhancements

This PR builds off #488 which introduces Typescript build config, and re-writes the @vx/threshold package in TypeScript. It also exposes the defined prop from the @vx/shape Area component.

This depends on types for @vx/shape (#507) and @vx/clip-path (#497). Closes #530.

💥 Breaking Changes

(Alternatively we could try to more intelligently generate these but it doesn't seem too bad for a user to pass this.)

📝 Documentation

  • Tried to clarify the props for this semi-confusing component via type annotations 🤞
  • Updates the /threshold demo to include a description and use red/green color blind friendly colors.

Tests

@hshoff @techniq @schillerk @milesj @kristw @Rudeg

Copy link

@Rudeg Rudeg left a comment

Choose a reason for hiding this comment

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

👍

@williaster williaster force-pushed the chris--typescript-vx-threshold branch from cbf0f42 to a991d48 Compare October 2, 2019 20:09
@williaster williaster changed the base branch from chris--typescript to master October 4, 2019 21:11
@hshoff hshoff merged commit 9fd6f38 into master Oct 10, 2019
@hshoff hshoff deleted the chris--typescript-vx-threshold branch October 10, 2019 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-write @vx/threshold in TypeScript
3 participants