-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Convert demo example into typescript #4516
Conversation
51ad46c
to
5097061
Compare
90caa62
to
7f9c9d5
Compare
You're going too fast in the wrong direction: adding |
@fzaninotto No worries, I'll change those |
@fzaninotto I've removed most of the quick and dirty |
* next: Remove const client = new ApolloClient();
@josephktcheung how is it going I would like to help with this. and let's add a reference #4505 to avoid new duplicates |
* next: (179 commits) Update UPGRADE.md Fix AutocompleteInput not accepting 0 as a value Fix AutocompleteInput empty suggestion item height fix: default app loading is not not center vertically - 4302 Fix ra-data-graphql-simple GET_MANY_REFERENCE target filter Moving FormHelperText above previews element Fix: css typo haight -> height v3.4.1 Prepare changelog for v3.4.1 review Update docs/List.md Update docs/List.md Update docs/List.md Fix tests Remove unused var Fix types Fix the desktop match Open the sidebar by default on desktop Don't force opening the sidebar on desktop Add section about filters in List documentation ...
Hi @MohammedFaragallah thanks for helping. I'd like to split up the work so that react-admin team can review each PR independently. Apart from what I've done in this PR, components in Besides, I'd also like us to review each other's change so that the interface is written in a consistent manner. What do you think? I've noticed that you created #4725 which also refactored example orders to typescript. I'll take a look tonight and pick up what's better and update my PR. |
@josephktcheung good plan I'll review your PR and start with Products the same way you did here to maintain consistent migration. |
? JSX.IntrinsicElements[C] | ||
: {}; | ||
|
||
export interface DatagridProps<RecordType = Record> |
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.
👍 This one and the following will serve as a good base for the ra-ui-material-ui types.
Awesome, thanks! |
This PR will convert the following files to ts:
dataProvider/*
fakeServer/*
i18n/*
routes.js
themeReducer.js
visitors/Aside.js
orders/MobileGrid.js
orders/NbItemsField.js
orders/OrderEdit.js
orders/OrderList.js
For others who want to help finish converting demo example into typescript, please create PRs for following parts:
products
: Demo product refactor to typescript #4592, Convert products demo example into typescript #4758reviews
segments