mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-26 10:14:19 +08:00
Add titleProp to SVGR ReactComponent type definition (#8099)
This commit is contained in:
4
packages/react-scripts/lib/react-app.d.ts
vendored
4
packages/react-scripts/lib/react-app.d.ts
vendored
@@ -42,7 +42,9 @@ declare module '*.webp' {
|
||||
declare module '*.svg' {
|
||||
import * as React from 'react';
|
||||
|
||||
export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
||||
export const ReactComponent: React.FunctionComponent<React.SVGProps<
|
||||
SVGSVGElement
|
||||
> & { title?: string }>;
|
||||
|
||||
const src: string;
|
||||
export default src;
|
||||
|
||||
Reference in New Issue
Block a user