From ab8109a7b14fdf3be60585c2aaed88931a957617 Mon Sep 17 00:00:00 2001 From: Kirill Agalakov Date: Fri, 2 Nov 2018 17:34:16 +0300 Subject: [PATCH] fix: add missing errors field --- src/language/typescript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language/typescript.ts b/src/language/typescript.ts index 0856f6d..bda019c 100644 --- a/src/language/typescript.ts +++ b/src/language/typescript.ts @@ -579,7 +579,7 @@ const client = ` return new ResponseValiationError(errors); } - constructor(errors: Errors) { + constructor(readonly errors: Errors) { super('ResponseValiationError'); Object.setPrototypeOf(this, ResponseValiationError); }