index.d.ts 334 B

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