UNPKG

1.04 kBTypeScriptView Raw
1import type { SizeForArbitrary } from '../../../arbitrary/_internals/helpers/MaxLengthFromMinLength.js';
2/**
3 * Parameters for {@link commands}
4 * @remarks Since 2.2.0
5 * @public
6 */
7export interface CommandsContraints {
8 /**
9 * Maximal number of commands to generate per run
10 *
11 * You probably want to use `size` instead.
12 *
13 * @defaultValue 0x7fffffff — _defaulting seen as "max non specified" when `defaultSizeToMaxWhenMaxSpecified=true`_
14 * @remarks Since 1.11.0
15 */
16 maxCommands?: number;
17 /**
18 * Define how large the generated values (number of commands) should be (at max)
19 * @remarks Since 2.22.0
20 */
21 size?: SizeForArbitrary;
22 /**
23 * Do not show replayPath in the output
24 * @defaultValue false
25 * @remarks Since 1.11.0
26 */
27 disableReplayLog?: boolean;
28 /**
29 * Hint for replay purposes only
30 *
31 * Should be used in conjonction with `{ seed, path }` of {@link assert}
32 *
33 * @remarks Since 1.11.0
34 */
35 replayPath?: string;
36}