mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Renamed TObject -> TDictionary (#616)
* Renamed TObject -> TDictionary * Added key features to the README.md
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ValidationError } from 'class-validator';
|
||||
|
||||
import { TObject } from '../types/TObject';
|
||||
import { TDictionary } from '../types/TDictionary';
|
||||
|
||||
export class ValidationErrorsFormatter {
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ export class ValidationErrorsFormatter {
|
||||
* @returns {string}
|
||||
*/
|
||||
private static formatWithNestedConstraints (error: ValidationError): string {
|
||||
const constraints: TObject<string> | undefined = error.constraints;
|
||||
const constraints: TDictionary<string> | undefined = error.constraints;
|
||||
|
||||
if (!constraints) {
|
||||
return `\`${error.property}\` error\n`;
|
||||
|
||||
Reference in New Issue
Block a user