Mark StrictValidationError errors property as readonly
This commit is contained in:
parent
f3af836020
commit
cbcd2bd67d
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ function getContextPath(context) {
|
||||||
// tslint:enable
|
// tslint:enable
|
||||||
|
|
||||||
export class StrictValidationError extends Error {
|
export class StrictValidationError extends Error {
|
||||||
private errors;
|
private readonly errors;
|
||||||
|
|
||||||
constructor(errors: string[]) {
|
constructor(errors: string[]) {
|
||||||
errors = Array.from(new Set(errors));
|
errors = Array.from(new Set(errors));
|
||||||
|
|
Loading…
Add table
Reference in a new issue