Skip to content

Commit 9d84d5e

Browse files
docs: add animated demo GIF to README
Add a before/after animation showing try/catch vs neverthrow's typed Result pattern. Generated with Remotion. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent de73e22 commit 9d84d5e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
Encode failure into your program.
88

9+
![Demo](assets/demo.gif)
10+
911
This package contains a `Result` type that represents either success (`Ok`) or failure (`Err`).
1012

1113
For asynchronous tasks, `neverthrow` offers a `ResultAsync` class which wraps a `Promise<Result<T, E>>` and gives you the same level of expressivity and control as a regular `Result<T, E>`.

assets/demo.gif

1000 KB
Loading

0 commit comments

Comments
 (0)