After researching similar questions and answers, it appears that any valid JavaScript code can also be considered TypeScript?
If this is true:
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.json());
const port = process.env.PORT || 5000;
app.listen(port, () => console.log(`Server started on port ${port}`));
Attempting to convert to TypeScript:
import express = require('express');
import bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.json());
const port: number;
port = process.env.PORT || 5000;
app.listen(port, () => console.log(`Server started on port ${port}`));