Unverified Commit 9fdddb36 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix async generateMetadata type in ts plugin (#46596)

Corrects async return type for `generateMetadata`

x-ref: https://github.com/vercel/next.js/pull/45723/files#r1121140364

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
parent ff699471
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
} from '../utils' } from '../utils'
const TYPE_ANOTATION = ': Metadata' const TYPE_ANOTATION = ': Metadata'
const TYPE_ANOTATION_ASYNC = ': Promise<Metadata> | Metadata' const TYPE_ANOTATION_ASYNC = ': Promise<Metadata>'
const TYPE_IMPORT = `\n\nimport type { Metadata } from 'next'` const TYPE_IMPORT = `\n\nimport type { Metadata } from 'next'`
// Find the `export const metadata = ...` node. // Find the `export const metadata = ...` node.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment