Skip to content

Commit

Permalink
Add svg ambiant types comment todo
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 21, 2024
1 parent 524c4f0 commit 1ee22a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/docusaurus-module-type-aliases/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Check failure on line 372 in packages/docusaurus-module-type-aliases/src/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint

Unknown word (ambiant) -- 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';

Expand Down

0 comments on commit 1ee22a4

Please sign in to comment.