{"by":"jiangmy","descendants":40,"id":33214075,"kids":[33219240,33219782,33221470,33219879,33222280,33221157,33222953,33223004,33220584,33219182,33221689,33219274,33217751],"score":83,"text":"Hello, folks. I&#x27;m Jiang, the author of ESInfer.<p>I love writing Javascript because it has a prosperous ecosystem and is quick to get my hands dirty. However, sometimes it&#x27;s painful when the flow is not fast to follow due to the lack of a type system.<p>To solve this, I wrote ESInfer, a statical inference tool, to automatically type check and generate type annotations for Javascript.<p>It works with pure Javascript without any add-ons to the language or user-space code and supports highly dynamic features, such as the modification of prototypes.<p>It is still in the very early stage, which offers almost all ES5 features and a select set of ES6 features like array&#x2F;object destructing. I&#x27;m working hard to bring all ES6+ features into it incrementally.<p>If you heavily use javascript&#x2F;typescript and do NOT want to write the type annotation sh*ts anymore, give it a try :)","time":1665835382,"title":"Show HN: ESInfer – Make JavaScript Type-Safe","type":"story","url":"https://esinfer.com/"}