diff --git a/svg.d.ts b/svg.d.ts new file mode 100644 index 0000000..34ea38c --- /dev/null +++ b/svg.d.ts @@ -0,0 +1,8 @@ +// Override Next's default `*.svg` typing so SVG imports return a React component +// (matches the @svgr/webpack runtime behavior configured in next.config.ts). + +declare module "*.svg" { + import type { FC, SVGProps } from "react"; + const Component: FC>; + export default Component; +}