Put in order · JavaScript and TypeScript course · Module 10: TypeScript in Practice

A Typed Route Handler in Express

Arrange the elements of a typed Express route handler:

Items to put in order

  • => { res.json(dino); })
  • (req: Request<{id: string}>,
  • router.get('/dinos/:id',
  • res: Response<Dinosaur>)

You can check the correct answer by solving this task in the CodeWorlds game.