How do I import react-admin in a React Typescript appplication?
问题 I'm trying to set up a react-admin app in typescript and I can't quite figure out how to import react-admin. It gives me the (simple) error saying "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';`" @types/react-admin is not a valid package but I couldn't find anyone else