Fix: TS lint on MDXLayoutProps (#4347)

* fix: extends interface -> type

* chore: changeset
This commit is contained in:
Ben Holmes 2022-08-16 09:45:10 -04:00 committed by GitHub
parent e2b3f8a3f4
commit 166b3b8a54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix MDXLayoutProps type signature for linting

View file

@ -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>>;