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

Migrate BaseStyles to TypeScript #982

Merged
merged 4 commits into from
Jan 26, 2021
Merged

Migrate BaseStyles to TypeScript #982

merged 4 commits into from
Jan 26, 2021

Conversation

colebemis
Copy link
Contributor

@colebemis colebemis commented Jan 26, 2021

This PR migrates the BaseStyles component to TypeScript as part of the TypeScript refactor.

While migrating BaseStyles, I discovered that React.ComponentProps doesn't work as expected with styled-components. So I wrote (read: copied) a new utility type called ComponentProps to allow us to extract component props from styled-components correctly. This PR replaces all usages of React.ComponentProps in our codebase with the new ComponentProps utility.

@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2021

🦋 Changeset detected

Latest commit: daf21a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jan 26, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-components/plj3b3e3y
✅ Preview: https://primer-components-git-cb-ts-base-styles.primer.now.sh

src/BaseStyles.tsx Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview January 26, 2021 18:37 Inactive
@colebemis colebemis changed the title [WIP] Migrate BaseStyles to TypeScript Migrate BaseStyles to TypeScript Jan 26, 2021
@vercel vercel bot temporarily deployed to Preview January 26, 2021 18:46 Inactive
@colebemis colebemis mentioned this pull request Jan 26, 2021
53 tasks
@vercel vercel bot temporarily deployed to Preview January 26, 2021 21:59 Inactive
@colebemis colebemis merged commit bdddcdb into main Jan 26, 2021
@github-actions github-actions bot mentioned this pull request Jan 26, 2021
@smockle smockle deleted the cb/ts-base-styles branch January 27, 2021 17:09
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