partial
Callable
Type parameters
- T
Parameters
arbitrary: Arbitrary<T>
The arbitrary to make partial.
constraints: MaybePartial<PartialGenerator> = {}
The constraints used to generate arbitrary values.
Returns Dependent<T | undefined>
A partial version of the given arbitrary.
It takes an arbitrary and returns a new arbitrary that can generate undefined values.
Example