Benoit Travers
Benoit Travers
## Summary Design discussion: producing a **deliberate Defect** — short-circuiting a chain into the Defect channel for a *known* condition — is currently awkward, and it's not obvious what the...
## Summary Add a **synchronous** counterpart to `fromSafePromise` — a `fromThrowable` variant where *every* thrown value becomes a `Defect`, with no `qualify` callback. Working name: `fromSafeThrowable` (or `fromSafe`). ## Motivation...
## Summary Add `AsyncResult.Ok(value)` and `AsyncResult.Err(error)` constructors (and, if we want the tree-shakeable free-function form, `AsyncOk` / `AsyncErr`) so that lifting a pure value into an `AsyncResult` doesn't require `Ok(value).toAsync()`....
## Summary Document the `.tap` vs `.flatTap` fire-and-forget footgun in the choosing-a-combinator guide (and possibly the `tap`/`flatTap` TSDoc). ## The trap Because a `.tap` callback's return is constrained by `NotThenable`,...
## Summary When a `fromPromise` / `fromThrowable` `qualify` function returns **only** `defect(cause)` (i.e. every rejection is unmodeled), the resulting `AsyncResult`'s **error channel** is inferred as `Defect` rather than `never` —...
## Summary `TaggedError(tag)` uses `tag` as both the `_tag` discriminant **and** the `Error.name`. There's no way to set one without the other, so namespacing the discriminant for collision-safety also rewrites...
## Summary `all` is the only result combinator, and it's (a) **sync-only** — it doesn't accept `AsyncResult`s — and (b) **tuple-typed**, so it doesn't reduce cleanly over a homogeneous array...
## Summary The instance methods `.isOk()` / `.isErr()` / `.isDefect()` return `boolean` and do **not** narrow. The standalone `isOk(r)` / `isErr(r)` / `isDefect(r)` functions *do* narrow. The dual API is...
## Summary `matchTags` only accepts a synchronous `Result`. `match` already has an async form (on `AsyncResult`, resolving to `Promise`), but `matchTags` has no equivalent — so on an `AsyncResult` you...
Hello 👋🏻 Thanks for this amazing library. I tried to use it with `Nest` + `fastify` but I am facing an issue. Here is a minimal repository with `Nest` +...