Ask HN: What is the “proper” way to do error-handling in TypeScript?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • neverthrow

    Type-Safe Errors for JS & TypeScript

    On my team we use Rust-style Result/Option types for any unrecoverable exceptions.

    https://github.com/supermacro/neverthrow

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • fp-ts

    Functional programming in TypeScript

    I use fp-ts with its Result type, works great.

    https://gcanti.github.io/fp-ts/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • The problem with new URL(), and how URL.parse() fixes that

    2 projects | news.ycombinator.com | 19 May 2024
  • From a Lorry Driver to Ruby on Rails Developer at 38

    1 project | news.ycombinator.com | 21 Apr 2024
  • Type-Safe Printf() in TypeScript

    4 projects | news.ycombinator.com | 24 Mar 2024
  • Introducing fp-utils a functional utility library for Deno / Node

    2 projects | /r/Deno | 10 Dec 2023
  • Blog post: graphs and monads with Typescript

    2 projects | /r/typescript | 7 Dec 2023