UNPKG

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