From 8dd1e13f2aceffcd82e2dcf1f409082fa99c2eff Mon Sep 17 00:00:00 2001 From: axmmisaka <6500159+axmmisaka@users.noreply.github.com> Date: Tue, 5 Dec 2023 08:29:38 -0800 Subject: [PATCH] fix(type-aliases): add `title` prop for imported inline SVG React components (#9612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Lorber --- packages/docusaurus-module-type-aliases/src/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/docusaurus-module-type-aliases/src/index.d.ts b/packages/docusaurus-module-type-aliases/src/index.d.ts index 09c3f2fb3d59..1f0e7679420a 100644 --- a/packages/docusaurus-module-type-aliases/src/index.d.ts +++ b/packages/docusaurus-module-type-aliases/src/index.d.ts @@ -356,7 +356,9 @@ declare module '@docusaurus/useGlobalData' { declare module '*.svg' { import type {ComponentType, SVGProps} from 'react'; - const ReactComponent: ComponentType>; + const ReactComponent: ComponentType< + SVGProps & {title?: string} + >; export default ReactComponent; }