diff --git a/.changeset/dirty-tables-report.md b/.changeset/dirty-tables-report.md new file mode 100644 index 000000000..09f6c069e --- /dev/null +++ b/.changeset/dirty-tables-report.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Allow globbed mdx files to have typed frontmatter diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index cf966a839..24f1fc8ee 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -241,6 +241,7 @@ export interface AstroGlobalPartial { */ glob(globStr: `${any}.astro`): Promise; glob>(globStr: `${any}.md`): Promise[]>; + glob>(globStr: `${any}.mdx`): Promise[]>; glob>(globStr: string): Promise; /** * Returns a [URL](https://developer.mozilla.org/en-US/docs/Web/API/URL) object built from the [site](https://docs.astro.build/en/reference/configuration-reference/#site) config option