ricardobalk / ricardobalk.nl

My personal website, made with Nuxt 3 (Vue 3), TypeScript & TailwindCSS
https://ricardobalk.nl
ISC License
0 stars 0 forks source link

Use TypeScript #55

Closed ricardobalk closed 4 years ago

ricardobalk commented 4 years ago

TypeScript is a more strict language that transpiles to JavaScript, like Babel does with ES5+. The main benefit is that typescript also requires the correct types (string, Object, Array, Number to name some), which make the code more robust.

An alternative would be ES5+ with Flow, in case it is difficult to set up. Flow allows to do type checking by code comments, so the code remains to work without Flow.

ricardobalk commented 4 years ago

https://github.com/Microsoft/TypeScript-Vue-Starter#typescript-vue-starter

ricardobalk commented 4 years ago

Working on this right now. I expect this to be finished by the end of the week (June 19, 2020).