Topics
Follow your own topics →
DIFF.BLOG
New Following Discover Jobs
More
Top Writers Suggest a blog Upvotes plugin
Report bug Contact About
Sign up
Menu
New Following Discover Jobs Top Writers
More
Suggest a blog Upvotes plugin Report bug Contact About
Sign up
The home for great developer writing.
Discover the best posts from developers and engineering teams, all in one place.
Join now → Learn more
TOPICS

Forcing Error Handling in TypeScript: A Result Type Implementation

127 · Harsh Rohila · Aug. 24, 2025, 6:35 a.m.
typescript error handling software development programming techniques
Summary
This blog post discusses the common issue of runtime crashes in TypeScript due to unhandled errors in Promises. It compares TypeScript's error handling to Java's checked exceptions and proposes the implementation of a Result type to enforce error handling at compile time, reducing runtime issues.
Read full post on www.rohilaharsh.in →
MORE POSTS LIKE THIS
TryInto, Self and Error
Users Rust Lang · Jul 21, 2026
Rust error handling
Parse, don't validate — In a Language That Doesn't Want You To
llimllib's notes · Jun 30, 2026
typescript programming techniques
Advanced Error Handling in Dart: Records, Result Types, Monads, and Freezed Exceptions
freeCodeCamp.org · May 28, 2026
Dart Flutter
Crumb - a small self-improving agent harness in under 200 lines of hand-written TypeScript. Bun runtime, no external libraries.
Zohaib · May 27, 2026
agent Self-improving systems
Experiment: making TypeScript immutable-by-default
Evan Hahn · Nov 18, 2025
typescript Immutable Programming
Narrowing TypeScript Unions without the `in` operator
Guilherme Simoes · Oct 19, 2025
typescript Union Types
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub Continue with Google