-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use TypeScript instead of JavaScript #3
Comments
Yep, Typescript is neccessary for developing, change the repo into Typescript was listed in TODO list, however, it is limitied by two problem
|
Perhaps you would like to organize it around a framework like React or Angular? Anyway, the current JS code can be pasted in typescript, the only things to change would be declaring types. |
Vic3-mapdata-editor/src/index.ts Lines 84 to 99 in 2855057
You can see I post a ROUGH TypeScript Version on it, and the code above is the interface of
It would raise error And then, when I complite with |
It will be pretty annoying to declare types for the various HTML elements, but it has to be done.
Still, if we do so, what bundler should we use rollup or webpack?
The text was updated successfully, but these errors were encountered: