@traversable/schema
    Preparing search index...

    Variable SeedValidDataGeneratorConst

    SeedValidDataGenerator: Arbitrary<
        | Seed.Seed.TemplateLiteral
        | [10]
        | [15]
        | [20]
        | [25]
        | [30]
        | [40]
        | [45]
        | [50]
        | [55]
        | [60]
        | [150, Bounds_bigint]
        | [100, Bounds_int]
        | [200, Bounds_number]
        | [250, Bounds_string]
        | [500, any]
        | [550, string | number | bigint | boolean]
        | [1000, unknown, Bounds_array]
        | [5000, unknown]
        | [9500, unknown]
        | [5500, unknown]
        | [5600, unknown]
        | [10500, (...args: []) => unknown]
        | [2000, unknown]
        | [2500, unknown]
        | [3000, unknown]
        | [7000, unknown]
        | [3500, unknown]
        | [4000, unknown]
        | [7500, [string, unknown][]]
        | [8000, unknown[]]
        | [8500, unknown[]]
        | [6000, [[7500, [string, unknown][]], [7500, [string, unknown][]]]]
        | [6500, [unknown, unknown]]
        | [10000, unknown],
    > = ...

    A seed generator that can be interpreted to produce reliably valid data.

    This was originally developed to test for parity between various schema libraries.

    To use it, you'll need to have fast-check installed.

    Note that certain schemas make generating valid data impossible (like z.never z.never) or or prohibitively difficult (like z.pipe z.pipe). For this reason, those schemas are not seeded.

    To see the list of excluded schemas, see seedsThatPreventGeneratingValidData seedsThatPreventGeneratingValidData.

    See also:

    import * as fc from 'fast-check'
    import { z } from 'zod'
    import { zxTest } from '@traversable/zod-test'

    const [seed] = fc.sample(zxTest.SeedValidDataGenerator, 1)
    const ZodSchema = zxTest.seedToSchema(seed)
    const dataset = fc.sample(zxTest.seedToValidData(seed), 5)

    const results = dataset.map((pt) => ZodSchema.safeParse(pt).success)

    console.log(results) // => [true, true, true, true, true]