diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index fdb50889e..65bb818ae 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -841,7 +841,7 @@ export interface AstroInstance { } export interface MarkdownInstance> { - frontmatter: T; + frontmatter: T & { file: string; url: string | undefined }; file: string; url: string | undefined; Content: AstroComponentFactory; @@ -871,10 +871,9 @@ export interface MDXInstance } export interface MarkdownLayoutProps> { - frontmatter: { - file: MarkdownInstance['file']; - url: MarkdownInstance['url']; - } & T; + frontmatter: MarkdownInstance['frontmatter']; + file: MarkdownInstance['file']; + url: MarkdownInstance['url']; headings: MarkdownHeading[]; rawContent: MarkdownInstance['rawContent']; compiledContent: MarkdownInstance['compiledContent'];