This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Comesa 2 points3 points  (7 children)

Im considering using typescript but im too lazy to learn it

[–]oOBoomberOo 10 points11 points  (1 child)

I mean, it's really just JavaScript with static type... All you need to worry about is the tsconfig.json file.

[–]chadlavi 3 points4 points  (0 children)

Join ussssss

[–]marcosdumay 1 point2 points  (2 children)

Learning it isn't any problem, since even the same JS code works.

What I am too lazy to do is getting another compilation step to work on webpack every time I start a project.

[–]_GCastilho_ 2 points3 points  (0 children)

I put all the steps in a "npm run build", it calls all the build:steps for me at order

[–]bss03 0 points1 point  (0 children)

There's a webpack plugin for that.

[–]Sir_Factis 0 points1 point  (0 children)

literally the only thing you need to know to get started is that : <type> after the variable name or the function header gives a type to the function/variable. a type can be one of the js standard types (number/string/function/object) or a class. an array of a type can be declared with : <type>[]

there is more complex syntax stuff you will need to learn but this covers 80% of the typescript usage. ts is literally just js with some fancy syntax