-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
[TypeScript] Refactor typings to modules #7874
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
Conversation
...instead of ambient modules.
* [icons] Update the dependencies * [core] Update some dependencies
* [docs] Fix missing props in css-in-js examples `this.classes.root` wouldn't work - `this.props.classes.root' would. * Update css-in-js.md
|
@oliviertassinari This is more of a J4I |
* v1-beta: (23 commits) [docs] Fix missing props in css-in-js examples (#7867) [docs] Small fixes after the next.js refactorization (#7851) [docs] Fix release script v2 [docs] Fix release script v1.0.0-beta.6 [CHANGELOG] Prepare v1.0.0-beta.6 [docs] Some last improvement before the release (#7847) [docs] Show inherited components (#7846) [docs] Add a team page (#7842) [docs] Add a ROADMAP page (#7840) [TextField] Fix placeholder issue (#7838) [core] Better usage of the CI 🚀 (#7833) [RadioGroup] Rename selectedValue to value (#7832) [docs] Use next.js (#7759) [core] Update some dependencies (#7831) [icons] Release v1.0.0-beta.5 [icons] Fix release [docs] Advanced table (#7824) [icons] Automate release process (#7823) [core] Fix size-limit warning (#7822) ... # Conflicts: # docs/src/pages/demos/badges/badges.md # docs/src/pages/demos/cards/cards.md # docs/src/pages/demos/selection-controls/selection-controls.md # docs/src/pages/demos/stepper/stepper.md # pages/api/app-bar.md # pages/api/avatar.md # pages/api/badge.md # pages/api/bottom-navigation-button.md # pages/api/bottom-navigation.md # pages/api/button-base.md # pages/api/button.md # pages/api/card-actions.md # pages/api/card-content.md # pages/api/card-header.md # pages/api/card-media.md # pages/api/card.md # pages/api/checkbox.md # pages/api/chip.md # pages/api/circular-progress.md # pages/api/collapse.md # pages/api/dialog-actions.md # pages/api/dialog-content.md # pages/api/dialog-title.md # pages/api/dialog.md # pages/api/divider.md # pages/api/drawer.md # pages/api/fade.md # pages/api/form-control-label.md # pages/api/form-control.md # pages/api/form-group.md # pages/api/form-helper-text.md # pages/api/form-label.md # pages/api/grid-list-tile-bar.md # pages/api/grid-list-tile.md # pages/api/grid-list.md # pages/api/grid.md # pages/api/grow.md # pages/api/hidden.md # pages/api/icon-button.md # pages/api/icon.md # pages/api/input-label.md # pages/api/input.md # pages/api/linear-progress.md # pages/api/list-item-avatar.md # pages/api/list-item-icon.md # pages/api/list-item-secondary-action.md # pages/api/list-item-text.md # pages/api/list-item.md # pages/api/list-subheader.md # pages/api/list.md # pages/api/menu-item.md # pages/api/menu-list.md # pages/api/menu.md # pages/api/mobile-stepper.md # pages/api/mui-theme-provider.md # pages/api/paper.md # pages/api/radio-group.md # pages/api/radio.md # pages/api/snackbar-content.md # pages/api/snackbar.md # pages/api/svg-icon.md # pages/api/switch.md # pages/api/tab.md # pages/api/table-body.md # pages/api/table-cell.md # pages/api/table-head.md # pages/api/table-row.md # pages/api/table-sort-label.md # pages/api/table.md # pages/api/tabs.md # pages/api/text-field.md # pages/api/toolbar.md # pages/api/typography.md # typings/index.d.ts
|
Might want to rebase on top of |
|
Hm, isn't the PR squashed anyway? |
| }).then(() => console.log(`Copied ${file} to ${buildPath}`)); | ||
| } | ||
|
|
||
| function copyTypings(from, to) { |
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.
@oliviertassinari I had to update this script, because the .d.ts were not picked up while building :(
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.
You are right, the .js are copied by Babel.
|
@oliviertassinari So running builds for |
|
@sebald Will try that out before merging 👍 |
* [typescript] Add test for style overrides. * [typescript] Refactor typings to modules ...instead of ambient modules. * renamed the styleSheet argument in withStyles to styles (mui#7819) * [typescript] Create typings for TS when building. (mui#7820) * [core] Fix size-limit warning (mui#7822) * [icons] Automate release process (mui#7823) * [docs] Advanced table (mui#7824) * [icons] Fix release * [icons] Release v1.0.0-beta.5 * [core] Update some dependencies (mui#7831) * [icons] Update the dependencies * [core] Update some dependencies * [docs] Use next.js (mui#7759) * [RadioGroup] Rename selectedValue to value (mui#7832) * [core] Better usage of the CI 🚀 (mui#7833) * [TextField] Fix placeholder issue (mui#7838) * [docs] Add a ROADMAP page (mui#7840) * [docs] Add a team page (mui#7842) * [docs] Show inherited components (mui#7846) * [docs] Some last improvement before the release (mui#7847) * [CHANGELOG] Prepare v1.0.0-beta.6 * v1.0.0-beta.6 * [docs] Fix release script * [docs] Fix release script v2 * [docs] Small fixes after the next.js refactorization (mui#7851) * [docs] Fix missing props in css-in-js examples (mui#7867) * [docs] Fix missing props in css-in-js examples `this.classes.root` wouldn't work - `this.props.classes.root' would. * Update css-in-js.md * [typescript] Fix tests. * [build] Copy .d.ts files to build folder. * [typescript] Create module typings for icons. * [typescript] Lint.
This patch refactors all TS typings to be modules, instead of ambient modules. Meaning, there is no longer a single typings file, but rather every source files has a corresponding
.d.tsfile.Closes #7853