Skip to content

Commit d55996f

Browse files
fix(type): setFormikInitialValue type
1 parent ebbe6eb commit d55996f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ export interface makeReactNativeFieldProps {
44
name: string;
55
}
66

7+
export interface setFormikInitialValueProps {
8+
name: string;
9+
}
10+
711
export interface withInputTypePropsProps {
812
type: string;
913
}
@@ -17,6 +21,7 @@ export interface withTouchedProps {
1721
}
1822

1923
export type makeInputGreatAgainProps = makeReactNativeFieldProps &
24+
setFormikInitialValueProps &
2025
withInputTypePropsProps &
2126
withErrorProps &
2227
withTouchedProps;
@@ -25,6 +30,10 @@ export function makeReactNativeField<Props>(
2530
WrappedComponent: React.ComponentType<Props>
2631
): React.ComponentClass<Props & makeReactNativeFieldProps>;
2732

33+
export function setFormikInitialValue<Props>(
34+
WrappedComponent: React.ComponentType<Props>
35+
): React.ComponentClass<Props & setFormikInitialValueProps>;
36+
2837
export function withError<Props>(
2938
WrappedComponent: React.ComponentType<Props>
3039
): React.ComponentClass<Props & withErrorProps>;

0 commit comments

Comments
 (0)