Skip to content

Commit

Permalink
fix(type-aliases): add title prop for imported inline SVG React com…
Browse files Browse the repository at this point in the history
…ponents (#9612)

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
  • Loading branch information
axmmisaka and slorber authored Dec 5, 2023
1 parent 56396f3 commit 8dd1e13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/docusaurus-module-type-aliases/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8dd1e13

Please sign in to comment.