From 166b3b8a544e6ba8f6a32960cf9c73bbb88c8b34 Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Tue, 16 Aug 2022 09:45:10 -0400 Subject: [PATCH] Fix: TS lint on `MDXLayoutProps` (#4347) * fix: extends interface -> type * chore: changeset --- .changeset/thick-spiders-try.md | 5 +++++ packages/astro/src/@types/astro.ts | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/thick-spiders-try.md 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>;