-
-
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
TypeScript demos #14897
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
How do you guys want to handle with third party libraries that don't have types like |
This comment has been minimized.
This comment has been minimized.
Since the last PRs to complete this effort are opened I'd like to thank @cvanem, @dan8f, @rogerclotet, @limatgans, @oliviertassinari, @ganes1410, @burtyish, @schapka and @netochaves for completing the effort (these are the authors that opened a PR after the 4.0 release and weren't mentioned previously). 380 demos are now available in TypeScript! |
@eps1lon Great effort, well done! |
With #13229 we got the proper infrastructure to present our demos both in JavaScript and TypeScript. We want to continue this effort with the goal to have all demos available in TypeScript.
If you want to make contributions to this repository and know a bit of TypeScript we would appreciate you helping us.
Getting started
TL;DR: Use #14739, #14485 or #14535 as example workflows.
./docs/src/pages/demos/lists/lists.md
and find the section. You're looking for a{{ "demo": "some-path" }}
block:.tsx
yarn docs:typescript:check
to verify your workWhile working
If you're stuck at any point and the type checker will not let your code pass you can still submit the PR. A maintainer will take a look and provide guidance.
It's important that you don't change any behavior. To verify this you can run
yarn docs:typescript:formatted
. This will transpile the typescript demos to JavaScript. This should not cause changes in any JavaScript file. It is possible, however, that this will uncover a bug, at which point a change to the JavaScript version is more than welcome. You may encounter some changes in whitespace (mainly added or removed lines). Changes to the JavaScript file are perfectly fine in this case.Work Items
Missing
components/steppers:
done
done
components/app-bar:
components/autocomplete:
components/avatars [docs] Add Avatar TypeScript demos #14954:
components/badges:
components/bottom-navigation [docs] BottomNavigation TypeScript docs #14979:
components/breadcrumbs [docs] Add Breadcrumbs TypeScript demos #15139:
components/buttons:
components/cards:
components/checkboxes:
components/chips:
components/click-away-listener:
components/container [docs] Migrate batch of demos to hooks/typescript #16322:
components/dialogs:
components/dividers [docs] Add TypeScript demos for Dividers #15037:
components/drawers:
components/expansion-panels [docs] Add ExpansionPanels TypeScript Demo #15162:
components/grid-list [docs] Add Grid List TypeScript demos #15118:
components/grid:
components/hidden:
components/icons:
components/links:
components/lists:
components/menus:
components/modal:
components/no-ssr:
components/paper:
components/pickers [docs] Add Pickers TypeScript demos #15103:
components/popover [docs] Migrate batch of demos to hooks/typescript #16322:
components/popper:
components/portal:
components/progress:
components/radio-buttons:
components/rating:
components/selects [docs] Add Select TypeScript demos #15288:
components/skeleton:
components/slider:
components/snackbars [docs] Add Snackbars TypeScript Demos #15087:
components/speed-dial:
components/steppers:
components/switches:
components/tables:
components/tabs [docs] Add Tabs TypeScript demo #15053:
components/text-fields:
components/textarea-autosize:
components/toggle-button:
components/tooltips [docs] Add Tooltip TypeScript demos #15061:
components/transfer-list:
components/transitions [docs] Migrate batch of demos to hooks/typescript #16003:
components/tree-view:
components/typography:
components/use-media-query:
css-in-js/basics:
customization/breakpoints:
customization/components:
customization/globals [docs] Migrate Globals demo to TypeScript #17785:
customization/palette:
customization/theming:
customization/typography:
guides/composition:
guides/interoperability:
guides/right-to-left:
styles/advanced:
styles/basics:
system/basics:
system/borders:
!important
inborderColor
prop #16875!important
inborderColor
prop #16875!important
inborderColor
prop #16875!important
inborderColor
prop #16875system/display [docs] Migrate batch of demos to hooks/typescript #16334:
system/flexbox [docs] Migrate batch of demos to hooks/typescript #16334:
system/palette [docs] Migrate batch of demos to hooks/typescript #16334:
system/positions [docs] Migrate batch of demos to hooks/typescript #16334:
system/shadows [docs] Migrate batch of demos to hooks/typescript #16334:
system/sizing [docs] Migrate batch of demos to hooks/typescript #16334:
system/spacing [docs] Migrate batch of demos to hooks/typescript #16334:
system/typography:
The text was updated successfully, but these errors were encountered: