79495411

Date: 2025-03-09 04:45:28
Score: 1
Natty:
Report link

Why bother writing your own declaration files? Why not declare a new Request interface that extends Express's Request interface?

Something like this: ts playground

This way you can let the typescript compiler generate the declaration file for you (using either "declaration"="true" in the tsconfig file or with the --declaration flag at the tsc CLI; link).

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why
  • Low reputation (0.5):
Posted by: beefsupreme