DefinitelyTyped/types/next
Jack Tomaszewski e15f8a4f68 fix(types/next): Add req and res NextContext typedefs used in next export (#36591)
* 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`
2019-07-09 16:31:50 -07:00
..
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