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

Prepare ra-ui-materialui Migration to TypeScript #2982

Merged
merged 11 commits into from
Mar 11, 2019

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Mar 9, 2019

I locally added the checkJs option to the package tsconfig.json file (not commited). This gives us the opportunity to fix many issues before starting the migration to TS.

  • Use createStyles
  • Check isValidElement before cloning where necessary
  • Use Children.only before cloning when necessary
  • Update material-ui to 1.5.1 (which we already use on many projects anyway)
  • Fix all other possible errors

I locally added the `checkJs` option to the package `tsconfig.json` file (not commited). This gives us the opportunity to fix many issues before starting the migration to TS.

- [x] Use `createStyles`
- [x] Check `isValidElement` before cloning where necessary
- [x] Use `Children.only` before cloning when necessary
- [ ] Find a TypeScript compatible way to sanitize props
- [ ] Fix all other possible errors
@djhi djhi requested a review from fzaninotto March 9, 2019 13:53
@djhi
Copy link
Collaborator Author

djhi commented Mar 9, 2019

124 errors left, from 235 when I started... 😩

Most remaining errors won't be fixed without actually migrating to TS.

@djhi djhi marked this pull request as ready for review March 9, 2019 15:53
@fzaninotto fzaninotto merged commit 432d7a2 into master Mar 11, 2019
@fzaninotto fzaninotto deleted the prepare-typescript-migration-mui branch March 11, 2019 09:36
@fzaninotto fzaninotto added this to the 2.8.0 milestone Mar 11, 2019
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