mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Remove inheritance between IJsenBuildSettings and IJsenSettings.
Fix naming case for the interface so that is consistent.
This commit is contained in:
+3
-3
@@ -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++;
|
||||
|
||||
Vendored
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user