-
Notifications
You must be signed in to change notification settings - Fork 108
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 #1
Comments
@andi23rosca I think is a good idea, but I am not as fluent in typescript as in javascript! What do you think if we first reach an alpha phase and then try to rewrite it? by using composition API it should be quite straightforward |
@DonNicoJs Sounds good, I have just finished porting a large Vue codebase to Typescript so I think I can help when the time comes. It's nice that there's already types for Leaflet so we don't really need to do much work. |
hi, pardon me if I'm parachuting in with a non-valuable suggestion, but at work we have begun migrating some js codebases to ts using ts-migrate. results have been mostly positive. |
@lukkyjoe This is a very good input! Thank you! I will look into it |
I definitely think typescript support is a must, since this is the direction Vue (and the community) is going. |
It can be added to use with typescript support and keep developing it as JS, you need to provide the module declaration file. |
I have to use it on one project and have added the following definition to my project
And it's working, but handling components as general (any) component. |
The solution mention above will only provide SOME typescript support. This will not add typing to components props. @DonNicoJs I can go though and convert the files to typescript, but we should also conside removing the use of |
Any news about typescript support ? |
Any news about typescript support? Lack thereof is making it hard/impossible to sell Vue with Leaflet. |
where's the typescript support !? |
I switched to OpenLayers. |
Hi Reinier-millo, |
@DonNicoJs Maybe too early to start a conversation about it since you have just started the implementation, but would it make sense to write the whole codebase in Typescript?
Since Vue 3 will basically have better support for type checking especially in the templates.
The text was updated successfully, but these errors were encountered: