1import { Request, Response, Application } from 'express';
2import express = require('express');
3
4var app: Application = express();
5
6app.get('/', function (req: Request, res: Response) {
7 res.send('Hello World')
8});
9
10app.listen(3000);
1import { Request, Response, Application } from 'express';
2
3// TODO Figure out how NOT to use require here.
4const express = require('express');
5var app: Application = express();
6
7app.get('/', function (req: Request, res: Response) {
8 res.send('Hello World')
9});
10
11app.listen(3000);