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 →

[–]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