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`.

14 lines (13 loc) 508 B
/** * Copyright (c) @talatkuyuk AKA @ipikuka * SPDX-License-Identifier: MPL-2.0 */ import type { RunOptions, RunResult } from "./types.js"; /** * parses and runs the javascript code syncronously in the compiled MDX source. */ export declare function runSync(compiledSource: string, options: RunOptions): RunResult; /** * parses and runs the javascript code asyncronously in the compiled MDX source. */ export declare function runAsync(compiledSource: string, options: RunOptions): Promise<RunResult>;