Skip to content

Commit

Permalink
Fixed Type Error in Typescript Section (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-pod committed Feb 11, 2022
1 parent acbcff8 commit d2ad91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -410,7 +410,7 @@ export default function ExamplePage({ mdxSource }: Props) {
)
}

export const getStaticProps: GetStaticProps<MDXRemoteSerializeResult> = async () => {
export const getStaticProps: GetStaticProps<{mdxSource: MDXRemoteSerializeResult}> = async () => {
const mdxSource = await serialize('some *mdx* content: <ExampleComponent />')
return { props: { mdxSource } }
}
Expand Down

0 comments on commit d2ad91e

Please sign in to comment.