Skip to content

Commit

Permalink
fix: flow types missing
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-yahia committed Nov 26, 2024
1 parent 2fe76aa commit e2eef67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function buildUniqueValidator(
?
[
{
validator: (value: any, errorObject: ?Object, contextProps: ?Object) => {
validator: (value: any, internalComponentError?: ?{error: ?string, errorCode: ?string}, contextProps: ?Object) => {
if (!value && value !== 0 && value !== false) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function isAllEmpty(value: AgeValues) {
}


export function isValidAge(value: Object, internalComponentError?: Object) {
export function isValidAge(value: Object, internalComponentError?: ?{error: ?string, errorCode: ?string}) {
if (isAllEmpty(value)) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow

export function isValidDate(value: ?string, internalComponentError?: Object) {
export function isValidDate(value: ?string, internalComponentError?: ?{error: ?string, errorCode: ?string}) {
if (!value) {
return { valid: false, errorMessage: null };
}
Expand Down

0 comments on commit e2eef67

Please sign in to comment.