News for hackers. Stuff that matters.
Re:TypeScript 2.4 by zeusly on Tuesday June 27, 2017 @02:43PM (#14648064)
I only know a little bit of JavaScript, what's the best way to learn TypeScript? Read Eloquent JavaScript then some TS related stuff? Or is there a TypeScript for Dummies that don't know JS?
Re:TypeScript 2.4 by josephst18 on Tuesday June 27, 2017 @03:00PM (#14648207)
I learned JS through Eloquent JavaScript and did the various projects in the book, then changed all my .js files to .ts, turned on all of TypeScript's checks, and started adding types to my files.

I'd recommend doing a similar path; transitioning existing code to TS is IMO a better way to learn it than from scratch. TypeScript Deep Dive is a great resource.

Re:TypeScript 2.4 by smt88 on Wednesday June 28, 2017 @01:49AM (#14651979)
The TypeScript compiler is strict and descriptive. You can honestly just learn JS and then mess around with TypeScript until your code compiles. Being good at JS is a requirement, of course.
Re:TypeScript 2.4 by munchor on Tuesday June 27, 2017 @02:49PM (#14648115)
If you want a quick overview, then https://www.typescriptlang.org/docs/handbook/typescript-in-5....

If you want the full immersion, then read the entire Handbook: https://www.typescriptlang.org/docs/handbook/basic-types.htm....

Re:TypeScript 2.4 by Scarbutt on Tuesday June 27, 2017 @02:52PM (#14648142)
For anything serious you are going to need to know JS, so yes, level up your JS first (up to ES5 is good enough) before switching to TS.
Re:TypeScript 2.4 by rickdg on Tuesday June 27, 2017 @04:15PM (#14648969)
Use it as a javascript syntax checker, it's probably the easiest to work with right now. And, when you learn more javascript, you may eventually take a look at actual typescript.
Re:TypeScript 2.4 by sleazebreeze on Tuesday June 27, 2017 @05:15PM (#14649522)
One way of learning TypeScript would be to fork a straightforward open source project, add type information and make the whole thing work with TS.
Re:TypeScript 2.4 by stuffedBelly on Tuesday June 27, 2017 @03:03PM (#14648234)
Javascript the Good Parts by Crockford is a great book for people who already know a bit of JS but want to learn it proper and deeper.