From ff3a3d57a2a55f50e95a1a5d502b7f8fcdbea8dd Mon Sep 17 00:00:00 2001 From: Linna Luo Date: Sun, 20 Jun 2021 17:10:09 -0400 Subject: [PATCH] added mdx module declaration to next-env.d.ts file --- next-env.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/next-env.d.ts b/next-env.d.ts index cdebab18..ffde38ef 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -62,3 +62,11 @@ declare module "*.section.mdx" { export const metadata: SectionMetadata; export default ReactComponent; } + +declare module "*.mdx" { + import { ComponentType } from "react"; + + const ReactComponent: ComponentType; + + export default ReactComponent; +}