init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

36
node_modules/fp-ts/es6/Random.d.ts generated vendored Normal file
View File

@@ -0,0 +1,36 @@
import { IO } from './IO'
import { ReadonlyNonEmptyArray } from './ReadonlyNonEmptyArray'
/**
* Returns a random number between 0 (inclusive) and 1 (exclusive). This is a direct wrapper around JavaScript's
* `Math.random()`.
*
* @since 2.0.0
*/
export declare const random: IO<number>
/**
* Takes a range specified by `low` (the first argument) and `high` (the second), and returns a random integer uniformly
* distributed in the closed interval `[low, high]`. It is unspecified what happens if `low > high`, or if either of
* `low` or `high` is not an integer.
*
* @since 2.0.0
*/
export declare function randomInt(low: number, high: number): IO<number>
/**
* Returns a random number between a minimum value (inclusive) and a maximum value (exclusive). It is unspecified what
* happens if `maximum < minimum`.
*
* @since 2.0.0
*/
export declare function randomRange(min: number, max: number): IO<number>
/**
* Returns a random boolean value with an equal chance of being `true` or `false`
*
* @since 2.0.0
*/
export declare const randomBool: IO<boolean>
/**
* Returns a random element of a `ReadonlyNonEmptyArray`.
*
* @since 2.10.0
*/
export declare const randomElem: <A>(as: ReadonlyNonEmptyArray<A>) => IO<A>