Tal MikeyT
Denoβ€’2y agoβ€’
6 replies
Tal Mikey

Deno express typescript is not working

Hi, I am trying to use deno with express and ts as this https://docs.deno.com/runtime/tutorials/how_to_with_npm/express/ example but getting any on express() result and also on middleware variables such as req, res.
any ideas?

deno version 1.44.4

the code
// @deno-types="npm:@types/express@4.17.15"
import express, { Request, Response } from "npm:express@4.18.2";

const app = express();

app.get("/", (req: Request, res: Response) => {
res.send("Welcome to the Dinosaur API!");
});

app.listen(8000);
image.png
Was this page helpful?