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 committed Jan 5, 2024
1 parent ed758fc commit ab6147a
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 ab6147a

Please sign in to comment.