Hacker News new | ask | show | jobs
by wikitopian 1426 days ago
Oh thank God. There aren't nearly enough ways to write javascript.
1 comments

There's no Javascript (or any other runtime) code in this at all. It all happens at compile-time.
But you probably are going to be running this as JS eventually
There's literally nothing to run. The source file is just a bunch of type declarations.
If you transpile it to js, you'll get empty file.
The real lesson isn't the output of our build system, it's the types we checked along the way.