Renamed TObject -> TDictionary (#616)

* Renamed TObject -> TDictionary
* Added key features to the README.md
This commit is contained in:
Timofey Kachalov
2020-05-31 08:08:19 +03:00
committed by GitHub
parent e76148cfac
commit 9213a13b2c
18 changed files with 54 additions and 46 deletions
+2 -2
View File
@@ -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`;