Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to disambiguate the namespaces of react-native and node?

$
0
0

I am using the setTimeout function which is defined in @types/node and @types/react-native (both picked up by Typescript without any imports at the top of the file).

vscode

Typescript is defaulting to node, which I do not want. I want to use the react-native declaration. How can I disambiguate the setTimeout call?

Thanks for any help. :)


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>