• Asserts data against either internal Validator functions or Zod object schemas Throws CoreTypeError if assertion fails

    Type Parameters

    • T

    • InputData = T

    Parameters

    • validator: Validator<T> | ZodType<T, ZodTypeDef, T>
    • message: string

    Returns ((data) => void)

      • (data): void
      • Parameters

        • data: InputData

        Returns void

Generated using TypeDoc