Skip to content

Instantly share code, notes, and snippets.

@unicornware
Created November 3, 2020 19:08
Show Gist options
  • Save unicornware/e1ce41ec7414f3ac04e2d3efeb8a34e9 to your computer and use it in GitHub Desktop.
Save unicornware/e1ce41ec7414f3ac04e2d3efeb8a34e9 to your computer and use it in GitHub Desktop.
mdx-scoped-runtime declaration file
/// <reference types='mdx-js__react' />
declare module 'mdx-scoped-runtime' {
import { FC, ReactNode } from 'react'
type AnyObject = Record<string, any>
interface MDXProps extends MDXProviderProps {
children?: ReactNode
components?: MDXProviderComponents
scope?: Record<string, FC<AnyObject>> | AnyObject
}
let MDX: (props: MDXProps) => JSX.Element
export default MDX
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment