@ipikuka/mdx
Version:
An opinionated wrapper of `next-mdx-remote-client`
12 lines (11 loc) • 605 B
TypeScript
import type { SerializeResult, SerializeProps, SerializeOptions } from "next-mdx-remote-client/serialize";
import { type TocItem } from "@ipikuka/plugins";
export type { SerializeResult, SerializeProps, SerializeOptions, TocItem };
/**
*
* Opinionated serialize wrapper for "next-mdx-remote/serialize"
*
*/
export declare function serialize<TFrontmatter extends Record<string, unknown> = Record<string, unknown>, TScope extends Record<string, unknown> = Record<string, unknown>>({ source, options, }: SerializeProps<TScope>): Promise<SerializeResult<TFrontmatter, TScope & {
toc?: TocItem[];
}>>;