Support for TypeScript 2.6 strict function types

and remove unnecessary import.
This commit is contained in:
Asuka Ito
2017-11-29 17:14:42 +09:00
parent 778e97bc8a
commit b2bab1dec0
2 changed files with 1 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ export interface CommonFieldProps {
export interface BaseFieldProps<P = {}> extends Partial<CommonFieldProps> {
name: string;
label?: string;
component?: ComponentType<P> | "input" | "select" | "textarea",
component?: ComponentType<P & WrappedFieldProps> | "input" | "select" | "textarea",
format?: Formatter | null;
normalize?: Normalizer;
props?: P;

View File

@@ -11,7 +11,6 @@ import {
formValueSelector,
Field,
GenericField,
BaseFieldProps,
WrappedFieldProps,
Fields,
GenericFields,