Dependent <T>
Hierarchy
- Arbitrary<T>
- Dependent
Index
Properties
chain
Type declaration
Type parameters
- U
Parameters
f: (x: T, context: ArbitraryContext) => Arbitrary<U>
Returns Dependent<U>
constant
Type declaration
Parameters
optionalisConstant: boolean
Returns Dependent<T>
map
Type declaration
Type parameters
- U
Parameters
f: (x: T, context: ArbitraryContext) => U
Returns Dependent<U>
random
Type declaration
Parameters
optionalcontext: ArbitraryContext
Returns T
optionalsupremumCardinality
Type declaration
Parameters
context: ArbitrarySizeContext
Returns number
value
Type declaration
Parameters
context: ArbitraryContext
Returns Tree<T>
Methods
filter
Type parameters
- S
Parameters
f: (x: T, context: ArbitraryContext) => x is S
Returns Dependent<S>
sample
Parameters
context: ArbitraryContext
Returns T