Content's reference type is not aligned with runtime value #12397
Labels
5.0 beta
Related to the Astro 5.0 beta
feat: content collections
Related to the Content Collections feature (scope)
needs triage
Issue needs to be triaged
regression
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When defining collection reference, the type of referenced content is
{collection: string; slug: string}
but it's runtime value is{collection: string; id: string}
Typescript:
Runtime:
What's the expected result?
The type should be aligned to runtime value
Link to Minimal Reproducible Example
Takeno/astro-content-reference-type-bug@40f5ffd
Participation
The text was updated successfully, but these errors were encountered: