diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 4c5a8b2b70..9494605b1d 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -2648,10 +2648,8 @@ export interface MarkdownInstance> { type MD = MarkdownInstance>; -export interface MDXInstance> extends Omit< - MarkdownInstance, - 'rawContent' | 'compiledContent' -> { +export interface MDXInstance> + extends Omit, 'rawContent' | 'compiledContent'> { components: Record | undefined; } @@ -2667,10 +2665,8 @@ export interface MarkdownLayoutProps> { compiledContent: MarkdownInstance['compiledContent']; } -export interface MDXLayoutProps> extends Omit< - MarkdownLayoutProps, - 'rawContent' | 'compiledContent' -> { +export interface MDXLayoutProps> + extends Omit, 'rawContent' | 'compiledContent'> { components: MDXInstance['components']; }