fix(type-aliases): add `title` prop for imported inline SVG React components (#9612)

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
axmmisaka 2023-12-05 08:29:38 -08:00 committed by GitHub
parent 56396f32eb
commit 8dd1e13f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,9 @@ declare module '@docusaurus/useGlobalData' {
declare module '*.svg' {
import type {ComponentType, SVGProps} from 'react';
const ReactComponent: ComponentType<SVGProps<SVGSVGElement>>;
const ReactComponent: ComponentType<
SVGProps<SVGSVGElement> & {title?: string}
>;
export default ReactComponent;
}