Skip to main content Link Search Menu Expand Document (external link)

Arbitrary overview

Added in v1.0.0


Table of contents


annotations

arbitrary

Signature

export declare const arbitrary: <A>(
  handler: (...args: ReadonlyArray<LazyArbitrary<any>>) => LazyArbitrary<A>
) => <I, R>(self: Schema.Schema<A, I, R>) => Schema.Schema<A, I, R>

Added in v1.0.0

arbitrary

make

Returns a fast-check Arbitrary for the A type of the provided schema.

Signature

export declare const make: <A, I, R>(schema: Schema.Schema<A, I, R>) => FastCheck.Arbitrary<A>

Added in v1.0.0

makeLazy

Returns a LazyArbitrary for the A type of the provided schema.

Signature

export declare const makeLazy: <A, I, R>(schema: Schema.Schema<A, I, R>) => LazyArbitrary<A>

Added in v1.0.0

hooks

ArbitraryHookId

Signature

export declare const ArbitraryHookId: typeof ArbitraryHookId

Added in v1.0.0

ArbitraryHookId (type alias)

Signature

export type ArbitraryHookId = typeof ArbitraryHookId

Added in v1.0.0

model

LazyArbitrary (interface)

Signature

export interface LazyArbitrary<A> {
  (fc: typeof FastCheck): FastCheck.Arbitrary<A>
}

Added in v1.0.0