Skip to content

Commit

Permalink
docs: Document Error ensure option
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Feb 18, 2021
1 parent 3983ae2 commit 6fda8ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Each `*/ensure` utility, accepts following options (eventually passed with secon
- `%v` - To be replaced with short string representation of invalid value
- `%n` - To be replaced with meaninfgul name (to be passed with `name` option) of validated value. Not effective if `name` option is not present
- `name` - Meaningful name for validated value, to be used in error message, assuming it contains `%n` placeholder
- `Error` - Alternative error constructor to be used (defaults to `TypeError`)

### Index

Expand Down

0 comments on commit 6fda8ce

Please sign in to comment.