Skip to content

Commit

Permalink
doc: add @throws
Browse files Browse the repository at this point in the history
  • Loading branch information
pkuczynski committed Mar 31, 2022
1 parent eb67b31 commit 815f431
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/datatype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export class Datatype {
* @param options.max Upper bound for generated number. Defaults to `min + 99999`.
* @param options.precision Precision of the generated number. Defaults to `1`.
*
* @throws When options define `max < min`
*
* @example
* faker.datatype.number() // 55422
* faker.datatype.number(100) // 52
Expand Down

0 comments on commit 815f431

Please sign in to comment.