index.d.ts 351 B

12345678910111213
  1. import { ConfigAPI, NodePath, types } from '@babel/core';
  2. interface Options {
  3. elements: string[];
  4. attributes: string[];
  5. }
  6. declare const removeJSXAttribute: (_: ConfigAPI, opts: Options) => {
  7. visitor: {
  8. JSXOpeningElement(path: NodePath<types.JSXOpeningElement>): void;
  9. };
  10. };
  11. export { Options, removeJSXAttribute as default };