UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

1 lines • 570 B
{"version":3,"file":"ValidationErrorUtils.mjs","names":[],"sources":["../../src/error/ValidationErrorUtils.ts"],"sourcesContent":["import { ValidationError } from 'class-validator'\n\nexport function isValidationErrorArray(e: ValidationError[] | unknown): boolean {\n if (Array.isArray(e)) {\n const isErrorArray = e.length > 0 && e.every((err) => err instanceof ValidationError)\n return isErrorArray\n }\n return false\n}\n"],"mappings":";;;;;AAEA,SAAgB,uBAAuB,GAAyC;AAC9E,KAAI,MAAM,QAAQ,EAAE,CAElB,QADqB,EAAE,SAAS,KAAK,EAAE,OAAO,QAAQ,eAAe,gBAAgB;AAGvF,QAAO"}