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

TypeScript declaration file #4951

Closed
Rechdan opened this issue Jun 17, 2020 · 1 comment
Closed

TypeScript declaration file #4951

Rechdan opened this issue Jun 17, 2020 · 1 comment

Comments

@Rechdan
Copy link

Rechdan commented Jun 17, 2020

I was having trouble with the TypeScript declarations, then I made a good solution:

declare module 'react-admin' {
	import * as ReactAdmin from 'react-admin/src';

	export = ReactAdmin;
}

Hope that helps people that are having trouble with it 😀

@djhi
Copy link
Contributor

djhi commented Jun 17, 2020

Thanks :)
See #4505

@djhi djhi closed this as completed Jun 17, 2020
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

No branches or pull requests

2 participants