💬 Questions and Help
|
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.
💬 Questions and Help
svgr/website/pages/docs/next.mdx
Lines 104 to 107 in 687dd2d
Would it be possible to declare this more strictly, for example using StaticImageData (or string | StaticImageData) instead of
any?I’d like to understand whether
anyis intentional, or if it would be acceptable to recommend a stricter type definition in the documentation.