mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-07 14:14:31 +00:00
* fix(types/next): Add req and res NextContext typedefs used in `next export` On `next export` command, `req` and `res` objects are hardcoded simple objects: https://github.com/zeit/next.js/blob/master/packages/next/export/worker.js#L42-L43 and thus they have different type definition (i.e. `res.writeHead` is missing which might cause [such code](https://github.com/zeit/next.js/wiki/Redirecting-in-%60getInitialProps%60) to blow up with a `TypeError: res.writeHead is not a function` . * fixup! fix(types/next): Add req and res NextContext typedefs used in `next export`