vue3-discordpicker icon indicating copy to clipboard operation
vue3-discordpicker copied to clipboard

Typescript Support?

Open cozumel424 opened this issue 4 years ago • 7 comments

It doesn't play nice with typescript which is a shame because this seems like the best emoji picker out there. yeah

cozumel424 avatar Aug 06 '21 13:08 cozumel424

I was just about to report the same exact thing. 😄

TS7016: Could not find a declaration file for module 'vue3-discordpicker'. '/node_modules/vue3-discordpicker/dist/discordpicker.common.js' implicitly has an 'any' type.

Can't wait to see it work with it! Cheers anyway for the outstanding work!

Nincha avatar Aug 06 '21 14:08 Nincha

Hi, For now you can juste create a file discordpicker.d.ts in your project with this declare module 'vue3-discordpicker';

Soon i rewrite all this component w/typescript and composition-api 👍 (really soon)

Tell me if solution work

enzostvs avatar Aug 07 '21 23:08 enzostvs

Hey!

Thanks for the feedback ; it now compiles the module but the TS errors/warning are still here so this is blocking compilation for the project (built on Quasar). :-)

Off topic, I also noticed a few CSS conflicts between Quasar and Tailwind - which is packing your CSS ; are you interested by a detailed report on this, and how they could potentially be solved ? If i'm not mistaken, the subject has been discussed on Quasar's Github, but as I recall they closed the issue stating that they don't plan to make any changes on their side.

Nincha avatar Aug 11 '21 16:08 Nincha

Hello @Nincha , Can you resend me the typescript warning please ?

For the CSS error, if you can explain me what kind of error exactly? Because normally I generate a tailwind style but linked to a class (.vue3-emojipicker), so the style will be valid only when the parent has this class

enzostvs avatar Aug 12 '21 07:08 enzostvs

Here they are :)

First, error when declaring DiscordPicker in components: image

Second, wargning about API Key image

I'm sending you an email with the CSS details :)

Nincha avatar Aug 12 '21 12:08 Nincha

@enzostvs seems like the email indicated on your website does not work. :( 😄

Nincha avatar Aug 14 '21 11:08 Nincha

Hi @Nincha yes sorry ! You can send here: [email protected] Thanks !

enzostvs avatar Aug 14 '21 20:08 enzostvs