Skip to content

Commit ddcb7d5

Browse files
authored
Add titleProp to SVGR ReactComponent type definition (#8099)
1 parent b855da5 commit ddcb7d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-scripts/lib/react-app.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ declare module '*.webp' {
4242
declare module '*.svg' {
4343
import * as React from 'react';
4444

45-
export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
45+
export const ReactComponent: React.FunctionComponent<React.SVGProps<
46+
SVGSVGElement
47+
> & { title?: string }>;
4648

4749
const src: string;
4850
export default src;

0 commit comments

Comments
 (0)