Preparation: clone repository in mods factorio directory
git clone https://github.com/VOXEL0798/tsexample.git
cd tsexample
npm install typed-factorio
Linux:
Run script extract.sh
Windows:
Run script extract.bat
it will extract the build directory and rename it according to the info.json configuration
Details here: https://github.com/GlassBricks/typed-factorio
and here: https://typescripttolua.github.io/