Skip to content

Commit

Permalink
fix: add input value type to generics
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Nov 9, 2022
1 parent e919b44 commit 7584bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormsyInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {
} from 'semantic-ui-react';
import { filterSuirElementProps } from './utils';

type InputValueType = any;
type SemanticFormField = Pick<
StrictFormFieldProps,
'as' | 'className' | 'error' | 'width' | 'inline' | 'disabled'
>;
type SemanticInputProps = Omit<StrictInputProps, 'error'>;
export type IFormsyInputProps<
InputValueType = any,
HtmlBaseElement = React.InputHTMLAttributes<any>
> = FormsyInjectedProps<InputValueType> &
SemanticFormField &
Expand Down

0 comments on commit 7584bf4

Please sign in to comment.