You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: reword lingering ts-pattern references to the built-in matcher
The dependency is gone (beta.6 builds the matcher into unthrown); the
migration guide, worker errors JSDoc, and the agent dependency rules now
say 'exhaustive matcher' instead of naming ts-pattern, and the catalog
note no longer lists it.
|`.map(fn)` / `.mapErr(fn)` / `.orElse(fn)`|`.map(fn)` / `.mapErrCases(m)` / `.flatMapErrCases(m)` (the error combinators take an exhaustive ts-pattern matcher `m`, not a plain callback) |
67
-
|`Result.combine([...])`|`all([...])`|
68
-
|`result.match(okFn, errFn)` (positional) |`result.match({ ok, errCases, defect })` (object, 3 channels; `errCases` is an exhaustive matcher) |
69
-
|`result.isOk()` / `result.isErr()` to narrow |`result.isOk()` / `result.isErr()` / `result.isDefect()` (methods narrow; `isOk(result)` free functions also exist) |
|`.map(fn)` / `.mapErr(fn)` / `.orElse(fn)`|`.map(fn)` / `.mapErrCases(m)` / `.flatMapErrCases(m)` (the error combinators take an exhaustive matcher `m`, not a plain callback) |
67
+
|`Result.combine([...])`|`all([...])`|
68
+
|`result.match(okFn, errFn)` (positional) |`result.match({ ok, errCases, defect })` (object, 3 channels; `errCases` is an exhaustive matcher) |
69
+
|`result.isOk()` / `result.isErr()` to narrow |`result.isOk()` / `result.isErr()` / `result.isDefect()` (methods narrow; `isOk(result)` free functions also exist) |
0 commit comments