From 4fafb0190e2f5da3fa0a5470ea23a4cf5622586c Mon Sep 17 00:00:00 2001 From: Rasmus Noerskov Date: Fri, 6 Dec 2019 12:23:24 +0100 Subject: [PATCH] Add titleProp to SVGR ReactComponent type definition --- packages/react-scripts/lib/react-app.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/lib/react-app.d.ts b/packages/react-scripts/lib/react-app.d.ts index 649faaddf95..981cd73472c 100644 --- a/packages/react-scripts/lib/react-app.d.ts +++ b/packages/react-scripts/lib/react-app.d.ts @@ -42,7 +42,9 @@ declare module '*.webp' { declare module '*.svg' { import * as React from 'react'; - export const ReactComponent: React.FunctionComponent>; + export const ReactComponent: React.FunctionComponent & { title?: string }>; const src: string; export default src;