title: typescript and express js. change res json `Response` type
body: <p>in typescript, I am trying to overwrite the express's <code>Response</code> <code>json</code> object to be a specific type of object to always be used</p>
  <p>for example, I want to enforce a interface type that would error out if the following format was not followed</p>
  <pre><code>  return res.status(200).json({
      data: [&quot;a&quot;, {&quot;a&quot;: &quot;b&quot;}],
      success: true,
    });
  </code></pre>
  <p>I attempted to use <code>dts-gen --m express -f src/types/express.d.ts</code> to create the declaration file to modify but it ended in failure.</p>
  <p>is there a way to overwrite a specific type on an existing library or do I need to create a declaration file specific to my needs?</p>