diff options
author | 2022-08-16 09:45:10 -0400 | |
---|---|---|
committer | 2022-08-16 09:45:10 -0400 | |
commit | 166b3b8a544e6ba8f6a32960cf9c73bbb88c8b34 (patch) | |
tree | 81e0bbb154de7fdb0f0ba0c5975dfcadae38369d | |
parent | e2b3f8a3f4f6ee8ddf84690b7c20a104d161166e (diff) | |
download | astro-166b3b8a544e6ba8f6a32960cf9c73bbb88c8b34.tar.gz astro-166b3b8a544e6ba8f6a32960cf9c73bbb88c8b34.tar.zst astro-166b3b8a544e6ba8f6a32960cf9c73bbb88c8b34.zip |
Fix: TS lint on `MDXLayoutProps` (#4347)
* fix: extends interface -> type
* chore: changeset
-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>>; |