Skip to main content

Dependent <T>

Hierarchy

Index

Properties

chain

chain: <U>(f: (x: T, context: ArbitraryContext) => Arbitrary<U>) => Dependent<U>

Type declaration

constant

constant: (isConstant?: boolean) => Dependent<T>

Type declaration

    • Parameters

      • optionalisConstant: boolean

      Returns Dependent<T>

map

map: <U>(f: (x: T, context: ArbitraryContext) => U) => Dependent<U>

Type declaration

random

random: (context?: ArbitraryContext) => T

Type declaration

optionalsupremumCardinality

supremumCardinality?: (context: ArbitrarySizeContext) => number

Type declaration

    • (context: ArbitrarySizeContext): number
    • Parameters

      • context: ArbitrarySizeContext

      Returns number

value

value: (context: ArbitraryContext) => Tree<T>

Type declaration

Methods

filter

sample