Fix: TS lint on MDXLayoutProps
(#4347)
* fix: extends interface -> type * chore: changeset
This commit is contained in:
parent
e2b3f8a3f4
commit
166b3b8a54
2 changed files with 6 additions and 2 deletions
5
.changeset/thick-spiders-try.md
Normal file
5
.changeset/thick-spiders-try.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix MDXLayoutProps type signature for linting
|
|
@ -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>>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue