Skip to content

Commit

Permalink
🐛 fix: Fix that types of property 'children' are incompatible (ant-de…
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored and zombieJ committed Dec 31, 2019
1 parent 20741cb commit 91e3423
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/form/FormItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import isEqual from 'lodash/isEqual';
import classNames from 'classnames';
import { Field, FormInstance } from 'rc-field-form';
import { FieldProps as RcFieldProps } from 'rc-field-form/lib/Field';
import { FieldProps } from 'rc-field-form/lib/Field';
import omit from 'omit.js';
import Row from '../grid/row';
import { ConfigContext } from '../config-provider';
Expand All @@ -17,6 +17,7 @@ const ValidateStatuses = tuple('success', 'warning', 'error', 'validating', '');
export type ValidateStatus = typeof ValidateStatuses[number];

type RenderChildren = (form: FormInstance) => React.ReactElement;
type RcFieldProps = Omit<FieldProps, 'children'>;

export interface FormItemProps extends FormItemLabelProps, FormItemInputProps, RcFieldProps {
prefixCls?: string;
Expand Down

0 comments on commit 91e3423

Please sign in to comment.