UNPKG

next-mdx-remote-client

Version:

A wrapper of the `@mdx-js/mdx` for the `nextjs` applications in order to load MDX content. It is a fork of `next-mdx-remote`.

12 lines (11 loc) 482 B
/** * Copyright (c) @talatkuyuk AKA @ipikuka * SPDX-License-Identifier: MPL-2.0 */ import type { HydrateResult, HydrateProps } from "./types.js"; /** * "run"s the javascript code in the compiled source, and * returns the <Content /> component whether or not wrapped with the MDXProvider * in the domain of client side rendering (csr). */ export declare function hydrate({ compiledSource, frontmatter, scope, components, disableParentContext, }: HydrateProps): HydrateResult;