function validateOrRejectRe-exportimport { validateOrReject } from "https://deno.land/x/oak_nest@v2.0.0/mod.ts"; validateOrReject(object: object, validatorOptions?: ValidatorOptions): Promise<void>Validates given object and reject on error. validateOrReject(schemaName: string,object: object,validatorOptions?: ValidatorOptions,): Promise<void>Validates given object by a given validation schema and reject on error. Validates given object and reject on error. Parametersobject: objectoptionalvalidatorOptions: ValidatorOptionsReturnsPromise<void>Validates given object by a given validation schema and reject on error. ParametersschemaName: stringobject: objectoptionalvalidatorOptions: ValidatorOptionsReturnsPromise<void>