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-glyph): re-write package in TypeScript #518

Merged
merged 7 commits into from
Dec 18, 2019

Conversation

williaster
Copy link
Collaborator

@williaster williaster commented Sep 24, 2019

🚀 Enhancements

This PR builds off #488 which introduces Typescript build config, and re-writes the @vx/glyph package in TypeScript.

Closes #516.

💥 Breaking Changes

  • This PR introduces React.Fragments, which requires bumping the peerDep for react to ^16.3.0-0
  • Removes (non-functional) children prop from GlyphDot component

Tests

  • CI
  • functional via /legends + /glyphs demos (did not actually update /glyphs demo)
  • generates .d.ts files

@hshoff @schillerk @milesj @kristw @Rudeg

size?: number | ((d: Datum) => number);
};

export default function GlyphCircle<Datum = any>({
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the Datum generic here is not useful unless the consumer leverages the children override. but since d3s symbol takes it as an arg I think exposing it is good.

@williaster williaster changed the base branch from chris--typescript to master October 4, 2019 20:51
@hshoff hshoff added this to In progress in TypeScript via automation Oct 9, 2019
@hshoff hshoff added this to the v0.0.193 milestone Oct 9, 2019
@williaster williaster removed this from In progress in TypeScript Oct 9, 2019
@williaster
Copy link
Collaborator Author

williaster commented Dec 18, 2019

build passed but can't fix/ignore the fossa issue, I think it's next based.

@williaster williaster merged commit 7be5e7e into master Dec 18, 2019
@williaster williaster deleted the chris--typescript-vx-glyph branch December 18, 2019 19:57
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/glyph in TypeScript
2 participants