From 1ee22a440b22115b2fc62f81e45d2d28c820e39f Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 21 Nov 2024 12:24:28 +0100 Subject: [PATCH] Add svg ambiant types comment todo --- packages/docusaurus-module-type-aliases/src/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/docusaurus-module-type-aliases/src/index.d.ts b/packages/docusaurus-module-type-aliases/src/index.d.ts index 7fb78549f13d..2fc6b3e66925 100644 --- a/packages/docusaurus-module-type-aliases/src/index.d.ts +++ b/packages/docusaurus-module-type-aliases/src/index.d.ts @@ -369,6 +369,9 @@ declare module '@docusaurus/useGlobalData' { export default function useGlobalData(): GlobalData; } +// TODO find a way to move this ambiant type to the SVGR plugin? +// unfortunately looks complicated in practice +// see https://x.com/sebastienlorber/status/1859543512661832053 declare module '*.svg' { import type {ComponentType, SVGProps} from 'react';