Integrating package: vue-svg-loader.
Established the file svg.d.ts
with the content below:
declare module '*.svg' {
const content: any
export default content
}
Utilizing it in a component in the following manner:
import register from '@/assets/svg/register.svg?inline'
Results in an error:
Typescript Cannot find module '@/assets/svg/register.svg?inline'
However, removing ?inline
resolves the issue. How should the svg module be correctly declared in the .d.ts
file?