rsnext/packages/next/server/api-utils
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
..
index.ts Ensure path can be specified for clearPreviewData (#40238) 2022-09-05 13:37:08 -07:00
node.ts Improve types for <Image /> and responseLimit (#40863) 2022-09-26 22:41:25 -07:00
web.ts refactor: rewrite etag (#38568) 2022-07-18 09:20:44 +00:00