Skip to content

Commit

Permalink
fix: add input value type to generics in a less destructive place
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Nov 9, 2022
1 parent 8c92c45 commit d8d01ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/FormsyInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, {
cloneElement,
Component,
createElement,
InputHTMLAttributes,
isValidElement,
} from 'react';
import {
Expand All @@ -20,8 +21,8 @@ type SemanticFormField = Pick<
>;
type SemanticInputProps = Omit<StrictInputProps, 'error'>;
export type IFormsyInputProps<
InputValueType = any,
HtmlBaseElement = React.InputHTMLAttributes<any>
HtmlBaseElement = InputHTMLAttributes<any>,
InputValueType = any
> = FormsyInjectedProps<InputValueType> &
SemanticFormField &
SemanticInputProps &
Expand Down

0 comments on commit d8d01ae

Please sign in to comment.