-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Migrate batch of demos to hooks/typescript #16334
Conversation
No bundle size changes comparing 0bee9a7...e0810a6 |
Might take some time to get to this one. |
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.
Awesome!
84249bd
to
db5c04a
Compare
This is a lot of migration for one pull request +1,322 −111:eyes: |
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.
Looks good :) 🚀
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.
Awesome! Just added some <ThemeProvider<ThemeType> />
for autocompletion and closer error message (you already did this in another demeo).
Should this pull request close #15451? |
The scope of that issue is a bit different. It is concerned with typing the possible values as literals instead of strings. Right now they still accept I'm going to experiment a bit with a possible type helper. |
@merceyz Awesome work |
Migrated the rest of the demos to hooks/typescript, there are a few missing but they require changes to the declarations i.e. #16333 or include too much change for this PR. It's big enough already.
Javascript and TypeScript are identical
Javascript and TypeScript are identical, changed to immediate export