Skip to content

Commit c9870bb

Browse files
committed
fix: add mdx support to ts
1 parent 18248cd commit c9870bb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/types/mdx.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare module '*.mdx' {
2+
import type { ComponentType } from 'react'
3+
4+
const component: ComponentType
5+
export default component
6+
}

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"include": [
3333
"next-env.d.ts",
3434
"global-env.d.ts",
35+
"src/types/**/*.ts",
3536
"**/*.ts",
3637
"**/*.tsx",
3738
".next/types/**/*.ts"

0 commit comments

Comments
 (0)