types: mark ImageResponse from next/server deprecated (#57372)
* Should show `ImageResponse` is deprecated if you still import from `"next/server"` <img width="708" alt="image" src="https://github.com/vercel/next.js/assets/4800338/38f9b9db-2cfb-48ec-99cc-08e7d1477155"> * If you build it will fail to compile, this might not be super ideal but at least it's not working. For pure js it will throw errors. ```ts ./app/icon.tsx:7:10 Type error: Only a void function can be called with the 'new' keyword. 5 | 6 | export default function icon() { > 7 | return new ImageResponse( | ^ 8 | ( 9 | <div 10 | style={{ ELIFECYCLE Command failed with exit code 1. ```
Showing
Please
register
or
sign in
to comment