[ts-next-plugin] warn to add correct type for metadata exports (#78254)
Follow up of https://github.com/vercel/next.js/pull/78237, https://github.com/vercel/next.js/pull/78258 If the exports of metadata options are missing types, warn them to import type to prevent breaking the app from invalid metadata. The warning covers: - `metadata` export - `generateMetadata` export - as function - as async function - as arrow function - as async arrow function - as function expression - as async function expression - all of the above as `export { ... }` https://github.com/user-attachments/assets/a25f9734-0d36-4592-a6fb-71faa7c00dbd --------- Co-authored-by:Sebastian "Sebbie" Silbermann <sebastian.silbermann@vercel.com>
Showing
This diff is collapsed.
Please
register
or
sign in
to comment