I worked on a joke/conversion project a little while ago that achieves the same ends without having to compile to JavaScript.
The only reason I wrote it was to prove to a co-worker who was "hating" on JavaScript that it IS possible to have a type system in JavaScript - if that's what you want. Its not the same end result but similar enough to warrant a mention.
The only reason I wrote it was to prove to a co-worker who was "hating" on JavaScript that it IS possible to have a type system in JavaScript - if that's what you want. Its not the same end result but similar enough to warrant a mention.
Here's the repo: https://github.com/christopherdebeer/TypedFunc