Files
documentation/node_modules/@svgr/babel-plugin-svg-dynamic-title/dist/index.d.ts
2024-03-22 03:47:51 +05:30

17 lines
336 B
TypeScript

import { NodePath, types } from '@babel/core';
declare type tag = 'title' | 'desc';
interface Options {
tag: tag | null;
}
interface State {
opts: Options;
}
declare const plugin: () => {
visitor: {
JSXElement(path: NodePath<types.JSXElement>, state: State): void;
};
};
export { Options, plugin as default };