-
typehole
TypeScript development tool for Visual Studio Code that helps you automate creating the initial static typing for runtime values
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Sometimes when you write TypeScript, you need to manually define types for variables and other values the compiler isn't smart enough to infer. Often this happens when a value is coming into your application from an outside source, like from an API as a JSON response. What most of us do in that case is we either create an interface that matches the API response JSON (so {"userId": 3} becomes interface Response { userId: number } ), or we take that JSON and paste it into http://json2ts.com/, https://quicktype.io/ or similar that creates the interface definition for us automatically. Both of these are fine, and I've always been doing it this way as well.