UNPKG

@mdx-js/language-service

Version:

MDX support for Volar

16 lines 776 B
/** * Resolve remark plugins from TypeScript’s parsed command line options. * * @param {unknown} mdxConfig * The parsed command line options from which to resolve plugins. * @param {(name: string) => Plugin} resolvePlugin * A function which takes a plugin name, and resolvs it to a remark plugin. * @returns {[PluggableList?, VirtualCodePlugin[]?]} * An array of resolved plugins, or `undefined` in case of an invalid * configuration. */ export function resolvePlugins(mdxConfig: unknown, resolvePlugin: (name: string) => Plugin): [PluggableList?, VirtualCodePlugin[]?]; import type { Plugin } from 'unified'; import type { PluggableList } from 'unified'; import type { VirtualCodePlugin } from './plugins/plugin.js'; //# sourceMappingURL=tsconfig.d.ts.map