Skip to content

Commit

Permalink
Add React.SFC type for Form.create return value #8672 (#8675)
Browse files Browse the repository at this point in the history
* Add React.SFC type for Form.create return value

* Restore indented.Fixed #8672

* Commit for lint

* Commit for lint
  • Loading branch information
kunlongxu authored and valleykid committed Dec 22, 2017
1 parent 24f0359 commit b06ea24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/form/Form.tsx
Expand Up @@ -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;
};

Expand Down Expand Up @@ -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>;
}

Expand Down

0 comments on commit b06ea24

Please sign in to comment.