rsnext/packages/next/types
Bruno Crosier 83f89c4f87
Improve types for <Image /> and responseLimit (#40863)
Currently, a developer building a website using Next.js could write this
code with no type errors:

```tsx
<Image
  width="kangaroo"
  height="100px"
  quality="medium"
  {...rest}
/>
```

This PR adds stricter type checking, which will catch this type of error
earlier.

Similarly, this PR adds stricter types for the `responseLimit`, to
ensure the types align to:
https://nextjs.org/docs/messages/api-routes-response-size-limit

Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-09-26 22:41:25 -07:00
..
compiled.d.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
global.d.ts chore: deprecate process.browser (#32862) 2022-01-27 16:55:26 +00:00
index.d.ts Improve types for <Image /> and responseLimit (#40863) 2022-09-26 22:41:25 -07:00
misc.d.ts Enable additional TypeScript ESLint rules (#39640) 2022-08-16 11:08:40 +00:00
webpack.d.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00