From ca8123463a34ec4090f77287104498403291d15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladimir=20=C4=90oki=C4=87?= Date: Thu, 24 Mar 2016 17:29:26 +0100 Subject: [PATCH] Add IJsenBuildSettings interface (specific to build(...) method) that extends IJsenSettings. Make errors property in IJsenValidator not nullable. --- jsen/jsen.d.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/jsen/jsen.d.ts b/jsen/jsen.d.ts index 709ebe1ea..b70fdfd95 100644 --- a/jsen/jsen.d.ts +++ b/jsen/jsen.d.ts @@ -10,16 +10,19 @@ interface IJsenFormats { interface IJSenSettings { missing$Ref?: boolean; greedy?: boolean; - copy?: boolean; - additionalProperties?: boolean; formats?: IJsenFormats; schemas?: any; } +interface IJsenBuildSettings extends IJSenSettings { + copy?: boolean; + additionalProperties?: boolean; +} + interface IJsenValidator { (data?: any): boolean; - build(initial?: any, options?: any): any; - errors?: IValidateError[]; + build(initial?: any, options?: IJsenBuildSettings): any; + errors: IValidateError[]; } interface IValidateError {