UNPKG

418 BTypeScriptView Raw
1import { ConfigAPI, NodePath, types } from '@babel/core';
2
3interface Value {
4 value: string;
5 newValue: string | boolean | number;
6 literal?: boolean;
7}
8interface Options {
9 values: Value[];
10}
11declare const addJSXAttribute: (api: ConfigAPI, opts: Options) => {
12 visitor: {
13 JSXAttribute(path: NodePath<types.JSXAttribute>): void;
14 };
15};
16
17export { Options, Value, addJSXAttribute as default };