Skip to content

Commit 353ab8d

Browse files
committed
Document new module switch-functional
1 parent 9b06f40 commit 353ab8d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/plugins.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,3 +638,6 @@ Some examples include:
638638
- [`modern-errors-http`](https://github.com/ehmicky/modern-errors-http)
639639
(underlying module:
640640
[`error-http-response`](https://github.com/ehmicky/error-http-response))
641+
- [`modern-errors-switch`](https://github.com/ehmicky/modern-errors-switch)
642+
(underlying module:
643+
[`switch-functional`](https://github.com/ehmicky/switch-functional))

src/plugins/core/all.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ const restore = BaseError.logProcess({ exit: true })
5555
expectType<void>(restore())
5656
expectType<ErrorInstance>(BaseError.parse(errorObject))
5757
expectType<ErrorInstance>(
58-
BaseError.switch('').case(TypeError, BaseError).default(),
58+
BaseError.switch('').case([TypeError, SyntaxError], BaseError).default(),
5959
)
6060
expectType<Format>(BaseError.fullFormat({ stack: true }))

0 commit comments

Comments
 (0)