index.d.ts 418 B

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