Skip to content

Commit

Permalink
chore: add template description
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Apr 26, 2022
1 parent 349136c commit cdb08e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ export class Helpers {
/**
* Returns the result of the callback if the probability check was successful, otherwise `undefined`.
*
* @template T The type of result of the given callback.
* @param callback The callback to that will be invoked if the probability check was successful.
* @param options The options to use. Defaults to `{}`.
* @param options.probability The probability (`[0.00, 1.00]`) of the callback being invoked. Defaults to `0.5`.
Expand Down

0 comments on commit cdb08e0

Please sign in to comment.