let's say I have a block of code that I would only like to be present (or run) in an intermediate environment. I set the environment variable in this enivronment (say ENV = 'staging'), is there a way for TypeScript to access this variable at compile time?
example:
if (Enivronment['ENV'] == 'staging') console.log('testing');
which will be compiled (redundant but effective) if ('staging' == 'staging') ...
in the above environment?
source share