Synchronously validates a value against a Zod schema.

  • Type Parameters

    • T

    Parameters

    • value: T

      The value to validate.

    • schema: ZodType<T, ZodTypeDef, T>

      The Zod schema to validate against.

    Returns boolean

    A boolean indicating whether the value is valid.