I have a node.js with server.js
var http = require('http');
var port = process.env.port || 1337;
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(port);
Say I have a typescript t.ts
var a = 123;
console.log(a);
I have two questions:
Is it possible to call the
t.tsfromserver.js(assume I must use server.js)?Is it possible to convert the
server.jstoserver.ts(becomes a typescript)?