mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
* Add React.SFC type for Form.create return value * Restore indented.Fixed #8672 * Commit for lint * Commit for lint
This commit is contained in:
parent
24f0359e2d
commit
b06ea2404f
@ -70,7 +70,7 @@ export type GetFieldDecoratorOptions = {
|
||||
exclusive?: boolean;
|
||||
/** Normalize value to form component */
|
||||
normalize?: (value: any, prevValue: any, allValues: any) => any;
|
||||
/** Whether stop validate on first rule of error for this field. */
|
||||
/** Whether stop validate on first rule of error for this field. */
|
||||
validateFirst?: boolean;
|
||||
};
|
||||
|
||||
@ -117,7 +117,7 @@ export type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;
|
||||
|
||||
export interface ComponentDecorator<TOwnProps> {
|
||||
<P extends FormComponentProps>(
|
||||
component: React.ComponentClass<P>,
|
||||
component: React.ComponentClass<P> | React.SFC<P>,
|
||||
): React.ComponentClass<Omit<P, keyof FormComponentProps> & TOwnProps>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user