You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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')
. ThanksThe text was updated successfully, but these errors were encountered: