From 1a2edf44e1f53ab5d6cf5937e91146b2d97c1619 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 26 Jan 2022 19:02:30 +0100 Subject: chore: use mdx with custom components --- mdx.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mdx.d.ts') diff --git a/mdx.d.ts b/mdx.d.ts index 7644488..f3a9a90 100644 --- a/mdx.d.ts +++ b/mdx.d.ts @@ -1,10 +1,13 @@ declare module '*.mdx' { + import { MDXProps } from 'mdx/types'; import { Meta } from '@ts/types/app'; - let MDXComponent: (props: any) => JSX.Element; + let MDXComponent: (props: MDXProps) => JSX.Element; export default MDXComponent; - export const meta: Meta; + export const cover: string; + export const image: string; export const intro: string; + export const meta: Meta; export const pdf: string; - export const image: string; + export const seo: { title: string; description: string }; } -- cgit v1.2.3