-
Notifications
You must be signed in to change notification settings - Fork 8
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
Introduce TypeScript and convert two components #161
Conversation
Move a lot over to TypeScript
Adjust some files
Do you mind if I add .nvmrc file to your branch? Seems that it needs npm version 16 for it to work? |
@@ -0,0 +1,25 @@ | |||
{ | |||
"compilerOptions": { |
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.
I am complete newbie here, but from what I was reading I think we should include declaration: true, which should generate d.ts files and in package.json we should have "types" property to specify where the types should be generated. This is important for people using typescript to get autocomplete features and the actual benefits that come with using Typescript. Any thoughts on this?
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.
@badiuoanaalexandra I think I'm going to walk back on the commit here and add this declaration:true
as its own issue to tackle in #163
This reverts commit 0b6dc34.
* Drop a lot of stuff for now and add TypeScript * Add first radix-ui piece to icon component * Move utils to TypeScript * Tests * Revert on a bunch of work This reverts commit 0b6dc34.
This PR is large which is mostly due to the package-lock changes. There are - however - a number of files that have been affected as part of this work.
src/components/icon
as a functional component and usesaccessible-icon
from Radix as an internal primitive.src/components/control-wrapper
as a functional component.src/docs/*
src/components/utils/*
src/components/icon/*
src/components/control-wrapper/*
Note I am not merging this branch into
main
but into an[email protected]
feature branch.Closes #144