Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Commit 934c790

Browse files
JeromeDeLeonbluebill1049
authored andcommitted
Fix type (#34)
#30
1 parent 1c5c1e3 commit 934c790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22

33
export type ValidateResult = string | boolean | undefined;
44

5-
export type Validate = (data: any) => ValidateResult;
5+
export type Validate = (data: any) => ValidateResult | Promise<ValidateResult>;
66

77
export type ValidationOptionObject<Value> =
88
| Value

0 commit comments

Comments
 (0)