From 60211defbfb2992ba17d1369e71c146d8928b09a Mon Sep 17 00:00:00 2001 From: Matt Kane <m@mk.gg> Date: Thu, 12 Sep 2024 10:45:11 +0100 Subject: [PATCH] Export the RenderResult type (#11974) --- .changeset/eighty-bags-cross.md | 5 +++++ packages/astro/templates/content/types.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/eighty-bags-cross.md diff --git a/.changeset/eighty-bags-cross.md b/.changeset/eighty-bags-cross.md new file mode 100644 index 000000000000..734ef71c1dfd --- /dev/null +++ b/.changeset/eighty-bags-cross.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Exports the `RenderResult` type diff --git a/packages/astro/templates/content/types.d.ts b/packages/astro/templates/content/types.d.ts index f83f28177698..0727ac2e5578 100644 --- a/packages/astro/templates/content/types.d.ts +++ b/packages/astro/templates/content/types.d.ts @@ -1,5 +1,5 @@ declare module 'astro:content' { - interface RenderResult { + export interface RenderResult { Content: import('astro/runtime/server/index.js').AstroComponentFactory; headings: import('astro').MarkdownHeading[]; remarkPluginFrontmatter: Record<string, any>;