-
-
Notifications
You must be signed in to change notification settings - Fork 435
Open
Description
π¬ Questions and Help
svgr/website/pages/docs/next.mdx
Lines 104 to 107 in 687dd2d
| declare module '*.svg?url' { | |
| const content: any | |
| export default content | |
| } |
Would it be possible to declare this more strictly, for example using StaticImageData (or string | StaticImageData) instead of any?
declare module '*.svg?url' {
import { type StaticImageData } from 'next/image'
const content: string | StaticImageData
export default content
}Iβd like to understand whether any is intentional, or if it would be acceptable to recommend a stricter type definition in the documentation.
MiroslavPetrik and Rock-n-Roll-CRC
Metadata
Metadata
Assignees
Labels
No labels