UNPKG

@react-form-fields/core

Version:

Material UI Form Fields

19 lines (18 loc) 614 B
import { Props } from 'react'; export interface IPropsFieldBase<Ref = {}> extends Props<Ref> { name?: string; value?: any; validation?: string; validationContext?: Object; validationAttributeNames?: Object; errorMessage?: string; mask?: string; } /** * Merge props from IPropsFieldBase and T removing U. Example: * * interface IProps extends PropsResolver<AnotherInterface, 'ignoreProps' | 'anotherProps'> { * myProps: string; * } */ export declare type PropsResolver<T, U extends string = '', Ref = {}> = Omit<T, keyof IPropsFieldBase<Ref> | U> & Omit<IPropsFieldBase<Ref>, U>;