UNPKG

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