Files
est-frame/node_modules/@svgr/babel-plugin-replace-jsx-attribute-value/dist/index.d.ts
2025-10-22 05:38:27 +00:00

18 lines
418 B
TypeScript
Executable File

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 };