Open abhay-agarwal opened 1 year ago
+1
@.***/icons-vue` is a different library.
On Sun, Jul 2, 2023, 18:11 Dima Kaltovich @.***> wrote:
+1
— Reply to this email directly, view it on GitHub https://github.com/alex-oleshkevich/vue-tabler-icons/issues/41#issuecomment-1616716878, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE3HSGDOGBLG2PU35QBI33XOGMU5ANCNFSM6AAAAAAY2D6WQ4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I have the same issue
I managed to solve it by applying a work around.
Created a file named vue_tabler_icon.d.ts
under types/...
(as you want).
Then used:
import { SVGAttributes, VNodeProps } from 'vue';
declare module '@vue/runtime-dom' {
export interface HTMLAttributes {
$children?: VNodeChild;
}
export interface SVGAttributes {
$children?: VNodeChild;
strokeWidth?: string | number;
}
}
When using your library, the following linting error has started to appear in VSCode for me:
I use it as follows: