Here's a simple repro to describe the problem:
- I created a vanilla RN project using
npx react-native init MyApp --template react-native-template-typescript
- In
App.tsx
, I addedlet foo: IThoughtTheWholePointOfATypeSafeLanguageWasNotToAllowShitLikeThis = "...seriously, wtf, why does this compile without an error!?";
- I run the app using
yarn iOS
The app runs fine and there are no errors in the bundler.
Question: How do I make it throw a compile error?