Skip to content

Commit 59d6400

Browse files
committed
📃 docs(effected): Add @since annotation to .catch[All]AndThrow()
1 parent 1cf58c5 commit 59d6400

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/effected.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,8 @@ export class Effected<out E extends Effect, out R> implements Iterable<E, R, unk
684684
* @param message The message of the error. If it is a function, it will be called with the
685685
* message of the error effect, and the return value will be used as the message of the error.
686686
* @returns
687+
*
688+
* @since 0.1.1
687689
*/
688690
catchAndThrow<Name extends ErrorName<E>>(
689691
name: Name,
@@ -704,6 +706,8 @@ export class Effected<out E extends Effect, out R> implements Iterable<E, R, unk
704706
* and the message of the error effect, and the return value will be used as the message of the
705707
* error.
706708
* @returns
709+
*
710+
* @since 0.1.1
707711
*/
708712
catchAllAndThrow(
709713
message?: string | ((error: string, message?: string) => string | undefined),

0 commit comments

Comments
 (0)