Skip to content

Commit

Permalink
fix: add mdx support to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
inkjesse committed Nov 4, 2024
1 parent 18248cd commit c9870bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/types/mdx.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module '*.mdx' {
import type { ComponentType } from 'react'

const component: ComponentType
export default component
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"include": [
"next-env.d.ts",
"global-env.d.ts",
"src/types/**/*.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
Expand Down

0 comments on commit c9870bb

Please sign in to comment.