UNPKG

next-mdx-remote

Version:

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

13 lines (12 loc) 365 B
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ /** * Prints a nicely formatted error message from an error caught during MDX compilation. * * @param error - Error caught from the mdx compiler * @param source - Raw MDX string * @returns Error */ export declare function createFormattedMDXError(error: any, source: string): Error;