mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Updated error interface from simple strings.
This commit is contained in:
Vendored
+7
-2
@@ -8,9 +8,14 @@ declare module Revalidator {
|
||||
validate(object: any, schema: ISchema, options: any): IReturnMessage;
|
||||
}
|
||||
|
||||
interface IErrrorProperty {
|
||||
property: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
interface IReturnMessage {
|
||||
valid: boolean;
|
||||
errors: string[];
|
||||
errors: IErrrorProperty[];
|
||||
}
|
||||
|
||||
interface ISchema {
|
||||
@@ -40,4 +45,4 @@ declare var revalidator: Revalidator.RevalidatorStatic;
|
||||
|
||||
declare module "revalidator" {
|
||||
export = revalidator;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user