Skip to content

fix: update SVG module declaration to correct type in NextJS#1008

Open
dev-garcia wants to merge 1 commit intogregberge:mainfrom
dev-garcia:patch-1
Open

fix: update SVG module declaration to correct type in NextJS#1008
dev-garcia wants to merge 1 commit intogregberge:mainfrom
dev-garcia:patch-1

Conversation

@dev-garcia
Copy link
Copy Markdown

Summary

Changes the type declaration for the *.svg?url from any to string.

Test plan

  • Imported SVGs as URLs (import iconUrl from './icon.svg?url') and verified that the type is correctly inferred as string.
  • Project builds and runs without type errors related to SVG imports.

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
svgr Ready Ready Preview Comment Aug 20, 2025 3:39pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant