diff --git a/.changeset/thick-spiders-try.md b/.changeset/thick-spiders-try.md new file mode 100644 index 000000000..b2cb276a2 --- /dev/null +++ b/.changeset/thick-spiders-try.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix MDXLayoutProps type signature for linting diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index fdb50889e..334f8c42f 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -880,8 +880,7 @@ export interface MarkdownLayoutProps> { compiledContent: MarkdownInstance['compiledContent']; } -export interface MDXLayoutProps - extends Omit, 'rawContent' | 'compiledContent'> {} +export type MDXLayoutProps = Omit, 'rawContent' | 'compiledContent'>; export type GetHydrateCallback = () => Promise<() => void | Promise>;