UNPKG

698 BTypeScriptView Raw
1import type { Arbitrary } from '../check/arbitrary/definition/Arbitrary.js';
2/**
3 * Build an arbitrary without shrinking capabilities.
4 *
5 * NOTE:
6 * In most cases, users should avoid disabling shrinking capabilities.
7 * If the concern is the shrinking process taking too long or being unnecessary in CI environments,
8 * consider using alternatives like `endOnFailure` or `interruptAfterTimeLimit` instead.
9 *
10 * @param arb - The original arbitrary used for generating values. This arbitrary remains unchanged, but its shrinking capabilities will not be included in the new arbitrary.
11 *
12 * @remarks Since 3.20.0
13 * @public
14 */
15export declare function noShrink<T>(arb: Arbitrary<T>): Arbitrary<T>;