Skip to content

Commit

Permalink
Fix Typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkleemans committed Sep 1, 2022
1 parent b77275c commit b8e4081
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
@@ -1,13 +1,12 @@
import { Plugin } from 'vite'
import { OptimizeOptions } from 'svgo'
import { FunctionalComponent, SVGAttributes } from 'vue'

declare module 'vite-svg-loader' {
import { Plugin } from 'vite'
import { OptimizeOptions } from 'svgo'
function svgLoader(options?: { svgoConfig?: OptimizeOptions, svgo?: boolean, defaultImport?: 'url' | 'raw' | 'component' }): Plugin
export default svgLoader
}

declare module '*.svg?component' {
import { FunctionalComponent, SVGAttributes } from 'vue'
const src: FunctionalComponent<SVGAttributes>
export default src
}
Expand All @@ -23,6 +22,7 @@ declare module '*.svg?raw' {
}

declare module '*.svg?skipsvgo' {
import { FunctionalComponent, SVGAttributes } from 'vue'
const src: FunctionalComponent<SVGAttributes>
export default src
}

0 comments on commit b8e4081

Please sign in to comment.