Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/en/reference/modules/astro-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down