ts-reset
ts-reset copied to clipboard
Feature request - add support for react-native
This library is a great idea 💡
I just tried to use it, but realized it's not going to work for my react-native project because react-native ships their own typings: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native/v0.70/globals.d.ts#L41
Do you think it would be possible to also over-ride / reset @types/react-native
?
Might be worth testing, looks like it might actually work fine given that the Response
interface is the same?
Seems like it's detecting both but using @types/react-native
for some reason:

Cool, this is probably some extra work but definitely in scope for this lib. Will investigate!
For Response specifically it may be worth getting this changed on the React Native side. I don't understand why they're including their own one here 🤔
FWIW, I believe newer versions of RN (0.71+ I think) no longer rely on the @types
package, instead shipping types directly from react-native
.