From 09ddcf7070f79d2de83e714619a234e1a2b7adb8 Mon Sep 17 00:00:00 2001 From: Christopher Glantschnig Date: Mon, 28 Sep 2015 12:03:25 +0200 Subject: [PATCH] extending Error on ValidationError --- joi/joi.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/joi/joi.d.ts b/joi/joi.d.ts index 8c97e12162..2e230dcb86 100644 --- a/joi/joi.d.ts +++ b/joi/joi.d.ts @@ -1,6 +1,6 @@ // Type definitions for joi v4.6.0 // Project: https://github.com/spumko/joi -// Definitions by: Bart van der Schoor , Laurence Dougal Myers +// Definitions by: Bart van der Schoor , Laurence Dougal Myers , Christopher Glantschnig // Definitions: https://github.com/borisyankov/DefinitelyTyped // TODO express type of Schema in a type-parameter (.default, .valid, .example etc) @@ -120,7 +120,7 @@ declare module 'joi' { cidr?: string } - export interface ValidationError { + export interface ValidationError extends Error { message: string; details: ValidationErrorItem[]; simple(): string;