• Asserts that a value matches a given Zod schema.

    Type Parameters

    • T

    Parameters

    • value: unknown

      The value to assert.

    • Optionalschema: ZodType<T, ZodTypeDef, T>

      The Zod schema to validate against.

    Returns asserts value is T

    If the assertion fails.