added mdx module declaration to next-env.d.ts file

This commit is contained in:
Linna Luo 2021-06-20 17:10:09 -04:00
parent f2f64f9eb4
commit ff3a3d57a2
1 changed files with 8 additions and 0 deletions

8
next-env.d.ts vendored
View File

@ -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;
}