index.d.ts 308 B

12345678910111213
  1. import { NodePath, types } from '@babel/core';
  2. interface State {
  3. replacedComponents: Set<string>;
  4. unsupportedComponents: Set<string>;
  5. }
  6. declare const plugin: () => {
  7. visitor: {
  8. Program(path: NodePath<types.Program>, state: Partial<State>): void;
  9. };
  10. };
  11. export { plugin as default };