Is it possible to prevent the use of a single equals sign in an if statement with TypeScript? I encountered an error in an Android codebase that should have occurred on iOS. The problem was caused by a shortcut in a styles file using
(Platform.OS = 'ios' ? "..." : "...");
.