docs(typedoc): document function examples

This commit is contained in:
2024-03-12 20:42:34 +02:00
parent ec41aebad9
commit fdb28fa612
10 changed files with 179 additions and 17 deletions

View File

@@ -24,6 +24,12 @@
* Uses Math.random(), which is not cryptographically secure
* Returns only integers
*
* @example
* ```ts
* // prints 66
* console.log(randomInRange(1, 100))
* ```
*
* @param min - minimum acceptable value
* @param max - maximum acceptable value
* @returns number [min; max]