UNPKG

328 BTypeScriptView Raw
1import { NodePath, types } from '@babel/core';
2
3type tag = 'title' | 'desc';
4interface Options {
5 tag: tag | null;
6}
7interface State {
8 opts: Options;
9}
10declare const plugin: () => {
11 visitor: {
12 JSXElement(path: NodePath<types.JSXElement>, state: State): void;
13 };
14};
15
16export { Options, plugin as default };