I opened thread here: https://stackoverflow.com/questions/58958243/implement-typescript-with-react-admin for search optimizations.
I did: create-react-app with --typescript flag
Then install react admin version 3.0
and I got this in console:
Could not find a declaration file for module 'react-admin'.
'.../node_modules/react-admin/lib/index.js' implicitly has an 'any' type.
Try `npm install @types/react-admin` if it exists or add a new declaration (.d.ts)
file containing `declare module 'react-admin';`
Any advice please or a guide please?
@llioor
SEE https://github.com/marmelab/react-admin/issues/3194#issuecomment-495664607
TypeScript types is an ongoing effort. No need for a Github issue to track it.
Can we get a guide? What is the error I got?
On Thu, Nov 21, 2019, 15:29 Francois Zaninotto notifications@github.com
wrote:
TypeScript types is an ongoing effort. No need for a Github issue to track
it.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marmelab/react-admin/issues/4014?email_source=notifications&email_token=ABVMYIJQQH6BU2EMJQST2ADQU2ENBA5CNFSM4JPUY4S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE2HCYY#issuecomment-557085027,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVMYIKYHH5LU4Q4WQQORK3QU2ENBANCNFSM4JPUY4SQ
.
This error shows up because you’ve configured typescript to work only with typescript modules, and react-admin only publishes a JS module. If you still want to use react-admin, you’ll need to alter your TS configuration. Refer to the TS doc for a guide on how to do that.
How can we help to imlementing TypeScript? it's essential for us.
Convert JS files from the ra-ui-matreial-ui package into TSX files and open a PR.
Discussion regarding TS has moved to https://github.com/marmelab/react-admin/issues/1617#issuecomment-595874113
Most helpful comment
Convert JS files from the ra-ui-matreial-ui package into TSX files and open a PR.