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

feat: create declaration file for react-admin package #4115

Closed
wants to merge 1 commit into from

Conversation

ethanve
Copy link

@ethanve ethanve commented Dec 5, 2019

I noticed that the react-admin package wasn't outputting declaration files. So I changed the config to output them.

Changes

  1. Set declaration to true in react-admin
  2. Update typescript and fix one issue that cropped up

@fzaninotto
Copy link
Member

Hi, and thanks for the PR. If we merge it, that'll break all the TypeScript projects depending on react-admin. The types weren't thoroughly tested and aren't ready for publication yet.

We'll publish them when they're ready.

@fzaninotto fzaninotto closed this Dec 5, 2019
@ethanve
Copy link
Author

ethanve commented Dec 5, 2019

Worth at least exporting them to @types/?

@ethanve
Copy link
Author

ethanve commented Dec 5, 2019

And I'm happy to help to improve react-admin's typescript types!

@fzaninotto
Copy link
Member

No, I don't think it's worth yet. Feel free to convert a few JS files to TS in ra-ui-material-ui, and open a pull request here to discuss your efforts. See #4071 for an example.

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