From 70fdf1a5c660057152c1ca111dcc89ceda5c8840 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Sat, 27 Jan 2024 07:44:37 +0100 Subject: [PATCH] Expose `ContentConfig` type from `astro:content` (#9840) * Expose `ContentConfig` type from `astro:content` * Add changeset --- .changeset/famous-seas-press.md | 5 +++++ packages/astro/content-types.template.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/famous-seas-press.md diff --git a/.changeset/famous-seas-press.md b/.changeset/famous-seas-press.md new file mode 100644 index 0000000000..67d32b2577 --- /dev/null +++ b/.changeset/famous-seas-press.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Expose `ContentConfig` type from `astro:content` diff --git a/packages/astro/content-types.template.d.ts b/packages/astro/content-types.template.d.ts index 146c52e73e..eeeb6cc934 100644 --- a/packages/astro/content-types.template.d.ts +++ b/packages/astro/content-types.template.d.ts @@ -183,5 +183,5 @@ declare module 'astro:content' { type AnyEntryMap = ContentEntryMap & DataEntryMap; - type ContentConfig = '@@CONTENT_CONFIG_TYPE@@'; + export type ContentConfig = '@@CONTENT_CONFIG_TYPE@@'; }