mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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` |
||
|---|---|---|
| .. | ||
| test | ||
| amp.d.ts | ||
| app.d.ts | ||
| config.d.ts | ||
| constants.d.ts | ||
| document.d.ts | ||
| dynamic.d.ts | ||
| error.d.ts | ||
| head.d.ts | ||
| index.d.ts | ||
| link.d.ts | ||
| router.d.ts | ||
| tsconfig.json | ||
| tslint.json | ||