diff --git a/src/content/docs/en/reference/modules/astro-content.mdx b/src/content/docs/en/reference/modules/astro-content.mdx index b391ae48835d2..c101a1c158ffd 100644 --- a/src/content/docs/en/reference/modules/astro-content.mdx +++ b/src/content/docs/en/reference/modules/astro-content.mdx @@ -329,7 +329,7 @@ const { Content, headings, remarkPluginFrontmatter } = await entry.render(); A string union of all collection names defined in your `src/content/config.*` file. This type can be useful when defining a generic function that accepts any collection name. ```ts -import type { CollectionKey, getCollection } from 'astro:content'; +import { type CollectionKey, getCollection } from 'astro:content'; async function getCollection(collection: CollectionKey) { return getCollection(collection);