Our great sponsors
-
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.
The Result and Option API is easy to integrate with existing TypeScript code. For instance, using the Option type can easily incorporate null or undefined values via the Option.fromNullable method, which transforms these potentially problematic values into an Option type. To illustrate the differences with Option type, I've put together an example here: https://github.com/erikjuhani/fp-utils/blob/main/examples/simple.ts.
Unlike more comprehensive functional libraries like fp-ts, each module can be imported and resolved separately. If you just need options, simply add the option module and you're good to go.