Files
documentation/node_modules/@svgr/babel-plugin-replace-jsx-attribute-value/dist/index.d.ts
2024-03-22 03:47:51 +05:30

18 lines
418 B
TypeScript

import { ConfigAPI, NodePath, types } from '@babel/core';
interface Value {
value: string;
newValue: string | boolean | number;
literal?: boolean;
}
interface Options {
values: Value[];
}
declare const addJSXAttribute: (api: ConfigAPI, opts: Options) => {
visitor: {
JSXAttribute(path: NodePath<types.JSXAttribute>): void;
};
};
export { Options, Value, addJSXAttribute as default };