Skip to content

Commit 889eb4b

Browse files
authored
Update typescript.mdx
* Change component props type to `any`, as MDX v2 does Reference: https://github.com/mdx-js/mdx/blob/v2/packages/react/types/index.d.ts Closes GH-1213. Reviewed-by: Christian Murphy <[email protected]> Reviewed-by: Titus Wormer <[email protected]>
1 parent 97ec1a8 commit 889eb4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/advanced/typescript.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ declare module '@mdx-js/react' {
3939
| 'ul'
4040

4141
export type Components = {
42-
[key in ComponentType]?: React.ComponentType<{children: React.ReactNode}>
42+
[key in ComponentType]?: React.ComponentType<any>
4343
}
4444

4545
export interface MDXProviderProps {

0 commit comments

Comments
 (0)