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

Commit 3b0d6d0

Browse files
committed
close #26 as prop type error
1 parent 40580f0 commit 3b0d6d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ export type Props = {
3535
register?: (ref: any, rules: ValidationOptions) => (name: string) => void;
3636
unregister?: (name: string) => void;
3737
name: string;
38-
as: React.ElementType<any>;
38+
as:
39+
| React.ElementType<any>
40+
| React.FunctionComponent<any>
41+
| JSX.Element
42+
| string;
3943
type?: string;
4044
rules?: ValidationOptions;
4145
value?: string | boolean;

0 commit comments

Comments
 (0)