compiling-typescript
compiling-typescript copied to clipboard
ParsedQs compiler error
Getting a compiler error:
src/server/server.ts:53:11 - error TS2739: Type 'ParsedQs' is missing the following properties from type 'Question': title, content
53 const question : Question = req.query;
~~~~~~~~
Maybe this could help you...
const question : Question = { title: req.query.title as string, content: req.query.content as string };
Experiencing this too, given the Pluralsight course says to clone this repo and compare if you're running into issues, seems like the repo should build successfully out of the box.