Re:Show HN: Codewich – A live-updating TypeScript/CSS/HTML p...
by johnfn on Saturday March 25, 2017 @12:05AM
(#13954046)
TypeScript is the 9th most used language on the StackOverflow survey - ahead of languages like Ruby, Swift, and Objective-C - so I wouldn't say that "not many devs" are trying it out. :)
Re:Show HN: Codewich – A live-updating TypeScript/CSS/HTML p...
by danappelxx on Friday March 24, 2017 @08:10PM
(#13953273)
> Unfortunately not many devs are trying out TypeScript.
Really? I've seen so much hype for typescript (though not as much recently). How much is enough?
Re:Show HN: Codewich – A live-updating TypeScript/CSS/HTML p...
by Ciantic on Saturday March 25, 2017 @01:11PM
(#13956568)
You should try the "allowJs" tsconfig option, it should allow to use the JS libraries without types with normal syntax (if you do that already with require trick, you are basically doing that anyhow).
I've used React+TS for a year now. It works perfectly. The decorators in TS are great to use with the react-redux implementations - makes the code look less verbose
The only problems I have faced is when type definitions are not available for certain libs. The workaround is simple - using "require(...)" instead of "import .. from ..." statements
With type definitions available from npm and @types, its pretty easy compared to the TSD and Typings I had to use earlier.