๐ŸŽ‰These docs are for v1 (currently in beta) โ€” read the v0 docs โ†’
MDX logoMDX v1.0.0-alpha.17
GitHub logo

TypeScript

If youโ€™re getting errors from TypeScript related to imports with an *.mdx extension, create an mdx.d.ts file in your types directory and include it inside your tsconfig.json.

// types/mdx.d.ts
declare module '*.mdx' {
let MDXComponent: (props) => JSX.Element;
export default MDXComponent;
}
Edit this page on GitHub
Next:
Getting Started