Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Aug 21, 2013
1 parent cd66ef5 commit 0ecce9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs.types → docs.mli
Expand Up @@ -2,7 +2,7 @@ type AlmostValidateError := {
type: ValidateErrorType, message: String
}
type PossibleValidateError = Array<AlmostValidateError> |
AlmostValidateError | null
AlmostValidateError | String | null

type Validator := (value: Any, key: String, parent: Object) =>
PossibleValidateError
Expand All @@ -11,7 +11,8 @@ type ValidateErrorType := "creditCard" | "email" | "length" |
type ValidateError := {
attribute: String,
message: String,
type: ValidateErrorType
type: ValidateErrorType,
value: Any
}

validate-form := (Object<String, Array<Validator>>) =>
Expand Down

0 comments on commit 0ecce9e

Please sign in to comment.