Remove inheritance between IJsenBuildSettings and IJsenSettings.

Fix naming case for the interface so that is consistent.
This commit is contained in:
Vladimir Đokić
2016-03-24 17:53:40 +01:00
parent ca8123463a
commit f48aabd23b
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -2261,7 +2261,7 @@ const doesNotThrow = (func: Function) => {
{
let schema = { format: 'custom' },
callCount = 0,
options = <IJSenSettings>{
options = <IJsenSettings>{
formats: {
custom: () => {
callCount++;
@@ -2298,7 +2298,7 @@ const doesNotThrow = (func: Function) => {
maximum: 10
},
callCount = 0,
options = <IJSenSettings>{
options = <IJsenSettings>{
formats: {
custom: () => {
callCount++;
@@ -2334,7 +2334,7 @@ const doesNotThrow = (func: Function) => {
},
format: 'passwordsMatch'
},
options = <IJSenSettings>{
options = <IJsenSettings>{
formats: {
passwordsMatch: (obj: any) => {
callCount++;
+3 -3
View File
@@ -7,14 +7,14 @@ interface IJsenFormats {
[key: string]: string | RegExp | Function;
}
interface IJSenSettings {
interface IJsenSettings {
missing$Ref?: boolean;
greedy?: boolean;
formats?: IJsenFormats;
schemas?: any;
}
interface IJsenBuildSettings extends IJSenSettings {
interface IJsenBuildSettings {
copy?: boolean;
additionalProperties?: boolean;
}
@@ -36,7 +36,7 @@ interface IJsenUnique {
findIndex(array: any[], value: any, comparator: (obj1: any, obj2: any) => boolean): number;
}
interface IJsen {
(schema?: any, options?: IJSenSettings): IJsenValidator;
(schema?: any, options?: IJsenSettings): IJsenValidator;
clone(data: any): any;
equal(a: any, b: any): boolean;
unique: IJsenUnique;