mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
Add IJsenBuildSettings interface (specific to build(...) method) that extends IJsenSettings.
Make errors property in IJsenValidator not nullable.
This commit is contained in:
1 parent
ed673f6e64
commit
ca8123463a
1 file changed
+7
-4
Vendored
+7
-4
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user