I would like to know what methods are available to specify which modules should my app import based on a target platform. I would like to import different implementations for the same interface in typescript for a browser and for a nodejs.
We have something like
#ifdef windows
#include "windowsimplementation.h"
#endif
In c++
How could i achieve something similar using typescript node and browserify?