Asynchronously 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 Promise<boolean>

    A promise that resolves to a boolean indicating whether the value is valid.