Skip to content

Commit

Permalink
Small correction to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe authored and kraenhansen committed Mar 3, 2023
1 parent 093de79 commit c24d0da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/realm/src/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import { AssertionError, DefaultObject, Realm, TypeAssertionError, binding } fro

/**
* Expects the condition to be truthy
* @throws {@link Error} If the condition is not truthy. Throws either the {@link err} given as param
* @throws {@link Error} If the condition is not truthy. Throws either the {@link err} given as param if it's an {@link Error},
* an {@link AssertionError} wrapping {@link err} if it's a string or undefined, or uses the result of invoking {@link err} if it's a function.
* @param condition The condition that must be truthy to avoid throwing.
* @param err Optional message or error to throw.
* Or a function producing this, which is useful to avoid computing the error message in case it's not needed.
Expand Down

0 comments on commit c24d0da

Please sign in to comment.