Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder how far fetched it would be to have just the syntax of Typescript on the browser without type-checking. We'd have to use tsc locally only for the typechecking, without the need of a build process, but that would be enough for me.

I know there's JSDoc but the normal syntax is so much better.

EDIT: Looks like there's a proposal: https://github.com/tc39/proposal-type-annotations



IIRC that's how the Flow type annotations worked, but of course it lost out to TypeScript.


Correct, but to be more precise, both Typescript and Flow allow for both JSDoc and the more common TS-like syntax.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: