Make any language “typed”, by changing your project structure
github.com
github.com
I would guess that in JavaScript you can get to a point similar to Python of old with Zope3 Interfaces, without needing to resort to a precompiler (though Python's decorator syntax makes thing nicer).