smart-tagz icon indicating copy to clipboard operation
smart-tagz copied to clipboard

typescript support?

Open damianlluch opened this issue 3 years ago • 3 comments

Hi!, thanks for sharing!

I try with your work in ts... I have this error:

image

image

damianlluch avatar Mar 26 '21 01:03 damianlluch

In your root folder create a shims-vue.d.ts file and add declare module 'smart-tagz';

shims

cozumel424 avatar Jul 19 '21 07:07 cozumel424

for somebody coming to this and thinking "Why you didn't just added text so I would not need to type it from the screen":

/* eslint-disable */
declare module '*.vue' {
  import type { DefineComponent } from 'vue'
  const component: DefineComponent<{}, {}, any>
  export default component
}

declare module 'smart-tagz';

mjudeikis avatar Mar 23 '23 15:03 mjudeikis

for somebody coming to this and thinking "Why you didn't just added text so I would not need to type it from the screen":

I just needed this today so that somebody wasn't me! Thanks for saving me some time :)

For the next person, I added this to env.d.ts:

declare module 'smart-tagz';

john- avatar Apr 06 '23 19:04 john-