From cbcd2bd67df2c184e6d46a5ccd9d47070eb98d78 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 27 Nov 2019 22:03:10 +0200 Subject: [PATCH] Mark StrictValidationError errors property as readonly --- backend/src/validatorUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/validatorUtils.ts b/backend/src/validatorUtils.ts index a200566e..1495d8b5 100644 --- a/backend/src/validatorUtils.ts +++ b/backend/src/validatorUtils.ts @@ -57,7 +57,7 @@ function getContextPath(context) { // tslint:enable export class StrictValidationError extends Error { - private errors; + private readonly errors; constructor(errors: string[]) { errors = Array.from(new Set(errors));