You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The metadata-interface.d.ts file contains incorrect documentation regarding the structure of the alternates property within the Metadata type. The example provided uses hreflang to define alternate languages, which contradicts the actual interface definition that expects a languages property.
Object literal may only specify known properties, and 'hreflang' does not exist in type 'AlternateURLs'.ts(2353)
metadata-interface.d.ts(196, 5): The expected type comes from property 'alternates' which is declared here on type 'Metadata'
Link to the code that reproduces this issue
https://github.com/ciruz/next.js-hreflang
To Reproduce
The
metadata-interface.d.ts
file contains incorrect documentation regarding the structure of the alternates property within the Metadata type. The example provided useshreflang
to define alternate languages, which contradicts the actual interface definition that expects alanguages
property.Current vs. Expected behavior
Show a correct example.
Provide environment information
Which area(s) are affected? (Select all that apply)
TypeScript (plugin, built-in types)
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: