MCPcopy
hub / github.com/Effect-TS/effect / makeLazy

Function makeLazy

packages/effect/src/Arbitrary.ts:52–55  ·  view source on GitHub ↗
(schema: Schema.Schema<A, I, R>)

Source from the content-addressed store, hash-verified

50 * @since 3.10.0
51 */
52export const makeLazy = <A, I, R>(schema: Schema.Schema<A, I, R>): LazyArbitrary<A> => {
53 const description = getDescription(schema.ast, [])
54 return go(description, { maxDepth: 2 })
55}
56
57/**
58 * Returns a fast-check Arbitrary for the `A` type of the provided schema.

Callers 1

makeFunction · 0.85

Calls 2

getDescriptionFunction · 0.85
goFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…