vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

TypeScript support

Open abezulski opened this issue 4 years ago • 5 comments

More of a question than issue: is there a types definition for TypeScript or do I need to create my own d.ts file as a workaround?

abezulski avatar Sep 29 '20 21:09 abezulski

I'm sorry but this project is not written in typescript therefore there is no typescript declaration file. It would be a alot of work to move to typescript to generate the declaration files but it could be done.

Maybe after the two big changes that are currently open.

MrWook avatar Oct 05 '20 07:10 MrWook

I'm just learning Typescript and am thinking of having a go at migrating this project across, provided the maintainer is in favour of doing so (@MrWook - please let me know).

@abezulski - have you already made a start on this? If so, any chance you could share your code? Thanks

mst101 avatar Aug 16 '21 09:08 mst101

Actually @MrWook - rather than converting to typescript, would you prefer if I had a go at migrating the project to Vue 3? What's more important? I want to learn both...

mst101 avatar Aug 16 '21 10:08 mst101

@mst101 i added a basic typescript setup https://github.com/sumcumo/vue-datepicker/pull/127 feel free to check it out to get a grasp about vue + typescript. A basic rule is that you never want to have any types. Always add a type for something.

Let's make little steps towards vue3 even if it is out quite a while now a lot of projects are on vue2 or starting with vue2. So let's start with migrating to typescript and then adding something like https://github.com/vueuse/vue-demi to build for vue2 and vue3

MrWook avatar Aug 16 '21 13:08 MrWook

No one needs TypeScript getting in their way.

mryellow avatar Jul 23 '24 23:07 mryellow