diff options
-rw-r--r-- | .changeset/thick-spiders-try.md | 5 | ||||
-rw-r--r-- | packages/astro/src/@types/astro.ts | 3 |
2 files changed, 6 insertions, 2 deletions
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<T extends Record<string, any>> { compiledContent: MarkdownInstance<T>['compiledContent']; } -export interface MDXLayoutProps<T> - extends Omit<MarkdownLayoutProps<T>, 'rawContent' | 'compiledContent'> {} +export type MDXLayoutProps<T> = Omit<MarkdownLayoutProps<T>, 'rawContent' | 'compiledContent'>; export type GetHydrateCallback = () => Promise<() => void | Promise<void>>; |