@mdx-js/language-service
Version:
MDX support for Volar
19 lines • 527 B
TypeScript
/**
* An object returned by a virtual code plugin.
*/
export type VirtualCodePluginObject = {
/**
* Visit an mdast node.
*/
visit?: ((node: Nodes) => undefined) | undefined;
/**
* Generate the JavaScript string to insert into the virtual code.
*/
finalize: () => string;
};
/**
* An internal plugin for MDX analyzer that represents an MDX plugin.
*/
export type VirtualCodePlugin = () => VirtualCodePluginObject;
import type { Nodes } from 'mdast';
//# sourceMappingURL=plugin.d.ts.map