UNPKG

next-mdx-remote

Version:

utilities for loading mdx from any remote source as data, rather than as a local import

16 lines (13 loc) 439 B
import * as React from 'react' export declare namespace MdxRemote { /** An object containing components to be made available within mdx content */ interface Components { [componentName: string]: React.FunctionComponent | React.Component } /** Format of the output from renderToString and input to hydrate */ interface Source { compiledSource: string renderedOutput: string scope?: Record<string, unknown> } }