Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript support #33

Open
abezulski opened this issue Sep 29, 2020 · 5 comments
Open

TypeScript support #33

abezulski opened this issue Sep 29, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@abezulski
Copy link

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?

@MrWook MrWook added the enhancement New feature or request label Oct 5, 2020
@MrWook
Copy link
Collaborator

MrWook commented Oct 5, 2020

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.

@mst101
Copy link
Contributor

mst101 commented Aug 16, 2021

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
Copy link
Contributor

mst101 commented Aug 16, 2021

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...

@MrWook
Copy link
Collaborator

MrWook commented Aug 16, 2021

@mst101 i added a basic typescript setup #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

@mryellow
Copy link

No one needs TypeScript getting in their way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants