The beauty of Typescript is that it is designed with the "any Javascript is a Typescript" principle in mind. This means, that you can learn it gradually. You can simply rename an extension of your file from .js to .ts and add a first type you need. e.g.:
The beauty of Typescript is that it is designed with the "any Javascript is a Typescript" principle in mind. This means, that you can learn it gradually. You can simply rename an extension of your file from .js to .ts and add a first type you need. e.g.:
And this was how I learned it: needed to describe a type, just tried to select a correct type intuitively first. If no success, then go to
typescriptlang.org/docs/home.html
typescriptlang.org/docs/handbook/b...
And of course, google, which in 95% cases directs you to the links listed above or to stackoverflow or sometimes:
basarat.gitbooks.io/typescript/con...