function validateOrRejectimport { validateOrReject } from "https://deno.land/x/deno_nest@v3.7.0/tests/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>