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 support #39

Closed
AndradeB91 opened this issue Sep 9, 2019 · 3 comments
Closed

Typescript support #39

AndradeB91 opened this issue Sep 9, 2019 · 3 comments
Assignees
Labels

Comments

@AndradeB91
Copy link

Module '"react-device-detect"' has no exported member 'deviceDetect'. I need this function exported for typescript.

@duskload duskload self-assigned this Sep 10, 2019
duskload added a commit that referenced this issue Sep 12, 2019
#39 add typescript support for deviceDetect func
@duskload
Copy link
Owner

@AndradeB91 should work now.

@saranshgrover
Copy link

The return type for deviceDetect function is any, Is it possible to make this a defined type?

@btn0s
Copy link

btn0s commented Feb 23, 2022

bumping this, ts doesn't like the any coming back from the hooks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants