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