News for hackers. Stuff that matters.

Tx3

Re:I Was Wrong About TypeScript on Friday June 10, 2016 @10:15AM (#11876474)
Hey, I just tried to be polite.. but yes, you're absolutely right, understatement of the century!
Re:I Was Wrong About TypeScript on Friday June 10, 2016 @10:12AM (#11876457)
Interesting solution, thank you for the link!
Re:I Was Wrong About TypeScript on Sunday June 05, 2016 @04:05PM (#11842841)
In the blog post, I have one example of the React use case with screen capture.

I find it very helpful to have properties defined, so when I use the component, I immediately know what are the props I can provide.

There are some 3rd party React components that won't have type definitions yet, but the popular ones are well covered. I have written most of the components I have used, so I haven't had many problems.

Re:I Was Wrong About TypeScript on Sunday June 05, 2016 @03:37PM (#11842694)
Rob is exactly right that you should use --outDir

You should aim for deployment process where outDir would be in .gitignore and building of the JS files would happen on a build server.

Re:I Was Wrong About TypeScript on Sunday June 05, 2016 @03:34PM (#11842672)
Good point! I used similar categorising as Anders Hejlberg used in the JavaScript Jabber podcast (https://devchat.tv/js-jabber/209-jsj-typescript-with-anders-...). For those who don't like audio, he basically referred TypeScript being superset of JavaScript, unlike some other languages.

Older »