diff --git a/packages/react/src/mdx.d.ts b/packages/react/src/mdx.d.ts new file mode 100644 index 0000000..1b6ccf4 --- /dev/null +++ b/packages/react/src/mdx.d.ts @@ -0,0 +1,7 @@ +declare module '*.mdx' { + import type { MDXProps } from 'mdx/types' + import type { Toc } from '@stefanprobst/rehype-extract-toc' + + export const tableOfContents: Toc + export default function MDXContent(props: MDXProps): JSX.Element +} \ No newline at end of file