Skip to content

Commit 8c20e2b

Browse files
committed
edit: defineCollection -> defineCollection()
1 parent ca3d266 commit 8c20e2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/en/guides/content-collections.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ To configure schemas, create a `src/content/config.ts` file (`.js` and `.mjs` ex
138138
2. Export a single `collections` object, with each object key corresponding to the collection's folder name.
139139

140140
:::tip
141-
Run `astro dev`, `astro build`, or `astro sync` before using the `astro:content` module. These commands will generate types for utilities like `defineCollection`.
141+
Run `astro dev`, `astro build`, or `astro sync` before using the `astro:content` module. These commands will generate types for utilities like `defineCollection()`.
142142
:::
143143

144144
For example, say you maintain two collections: one for release announcements and one for blog content. Your entries at `src/content/releases/` should include a `title` and `version`. Your `src/content/engineering-blog/` collection entries should have a `title`, list of `tags`, and an optional `image` URL.

0 commit comments

Comments
 (0)