mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add IJsenBuildSettings interface (specific to build(...) method) that extends IJsenSettings.
Make errors property in IJsenValidator not nullable.
This commit is contained in:
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