declare module for svg ts code example
Example: Cannot find module '../../images/home.svg' or its corresponding type declarations
// custom.d.ts on root /
declare module '*.svg?inline' {
const content: any
export default content
}
declare module '*.svg' {
const content: any
export default content
}