Skip to content

Commit e9c90e6

Browse files
docs: add static before/after image to README
Add a before/after PNG showing try/catch vs neverthrow's typed Result pattern with syntax highlighting. 75KB image. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent de73e22 commit e9c90e6

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.png)
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.png

75 KB
Loading

0 commit comments

Comments
 (0)