evenchange4 / svgr.macro

Run svgr at build-time with babel-plugin-macros.
MIT License
43 stars 4 forks source link

Missing typings #60

Open trajano opened 2 years ago

trajano commented 2 years ago

Needs something like

declare module "svgr.macro" {
  import { ComponentClass } from "react";
  import { SvgProps } from "react-native-svg";
  export default function toReactComponent(
    path: string,
    options?: Record<string, unknown>
  ): ComponentClass<SvgProps>;
}