UNPKG

794 BTypeScriptView Raw
1import { Arbitrary } from '../check/arbitrary/definition/Arbitrary';
2/**
3 * For one `...values` values - all equiprobable
4 *
5 * **WARNING**: It expects at least one value, otherwise it should throw
6 *
7 * @param values - Constant values to be produced (all values shrink to the first one)
8 *
9 * @remarks Since 0.0.12
10 * @public
11 */
12declare function constantFrom<T = never>(...values: T[]): Arbitrary<T>;
13/**
14 * For one `...values` values - all equiprobable
15 *
16 * **WARNING**: It expects at least one value, otherwise it should throw
17 *
18 * @param values - Constant values to be produced (all values shrink to the first one)
19 *
20 * @remarks Since 0.0.12
21 * @public
22 */
23declare function constantFrom<TArgs extends any[] | [any]>(...values: TArgs): Arbitrary<TArgs[number]>;
24export { constantFrom };