From 0c7e9dd9c05cea9ae4adbe710ee46a7f49380dcf Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 3 Jul 2022 09:26:47 +0000 Subject: [PATCH] fix: correct retrun type --- README.md | 4 ++-- index.d.ts | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f37a230..4b31f1e 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ import IconComponent from './my-icon.svg?component' ### Skip SVGO Optimizer for a file SVGO can be explicitly disabled for one file by adding the `?skipsvgo` suffix: ```js -import iconWithoutOptimizer from './my-icon.svg?skipsvgo' -// '/assets/my-icon.2d8efhg.svg' +import IconWithoutOptimizer from './my-icon.svg?skipsvgo' +// ``` ### Default import config diff --git a/index.d.ts b/index.d.ts index 3fa6a10..14c8379 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,3 +1,5 @@ +import { FunctionalComponent, SVGAttributes } from 'vue' + declare module 'vite-svg-loader' { import { Plugin } from 'vite' import { OptimizeOptions } from 'svgo' @@ -6,7 +8,6 @@ declare module 'vite-svg-loader' { } declare module '*.svg?component' { - import { FunctionalComponent, SVGAttributes } from 'vue' const src: FunctionalComponent export default src } @@ -22,6 +23,6 @@ declare module '*.svg?raw' { } declare module '*.svg?skipsvgo' { - const src: string + const src: FunctionalComponent export default src }