I'm using Firebase specifically, but this is a general question that applies to any multi-script use case.
Basically I'm declaring const firebaseConfig = { ... };
in one script, and then referring to that variable in my React code in separate files which are going through a bundling process.
Of course, VS Code says "Hey, firebaseConfig doesn't exist! Error! Error!" But in fact it does.
How can I resolve this so that I'm not getting misleading errors while developing?
For Typescript, just use: