how to use typescript file in another typescript file code example
Example 1: write in file in typescript
const fs = require("fs");
let text = "Something you want to write in";
fs.writeFileSync("document.txt", text, function(err){
if(err){
return console.log("error");
}
})
Example 2: how to run typescript file
npx ts-node src/foo.ts