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

Support export.default? #47

Open
dmytro-shchurov opened this issue Sep 25, 2017 · 1 comment
Open

Support export.default? #47

dmytro-shchurov opened this issue Sep 25, 2017 · 1 comment

Comments

@dmytro-shchurov
Copy link

Hi. I use TypeScript with React. One thing is that I'm not able to import DocumentTitle with DT d.ts. This is not a big deal, s I've created my own d.ts for DocumentTitle. Another thing is that your module misses default, so I have to use ugly import DocumentTitle = require('react-document-title'). Thanks

@pacey
Copy link

pacey commented Jun 22, 2018

Does that workaround work for you @dmytro-shchurov? It half works for me...The component manages to import and work but the TypeScript compiler throws errors

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