Skip to content

Commit

Permalink
Update typescript.mdx
Browse files Browse the repository at this point in the history
* 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 <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
gamliela authored Nov 11, 2020
1 parent 97ec1a8 commit 889eb4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declare module '@mdx-js/react' {
| 'ul'

export type Components = {
[key in ComponentType]?: React.ComponentType<{children: React.ReactNode}>
[key in ComponentType]?: React.ComponentType<any>
}

export interface MDXProviderProps {
Expand Down

1 comment on commit 889eb4b

@vercel
Copy link

@vercel vercel bot commented on 889eb4b Nov 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.