rsnext/packages/next/types
Andre Hsu a47d47e07a
Change type of GetServerSidePropsContext.req.cookies the be the same as NextApiRequest.cookies (#21336)
The original type for `GetServerSidePropsContext.req.cookies` was introduced in #19724. In the PR, the test at `test/integration/typescript/test/index.test.js` expects req.cookies to always exist, so `req.cookies` will never be undefined.

I'm guessing that req.cookies is parsed using the same cookie middleware as `NextApiRequest`, in which case `req.cookies` should be `{ [key: string]: string }`, not `{ [key: string]: any }`.
2021-01-26 14:26:59 +00:00
..
global.d.ts Add TypeScript Definitions for Sass (#10363) 2020-02-03 00:03:42 -05:00
index.d.ts Change type of GetServerSidePropsContext.req.cookies the be the same as NextApiRequest.cookies (#21336) 2021-01-26 14:26:59 +00:00
misc.d.ts feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
webpack.d.ts feat: Webpack loader inlining (#21127) 2021-01-15 01:51:45 +00:00