You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applying withProps() to a styled component yields the following type error:
error TS2345: Argument of type 'StyledComponent<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "form" | ... 280 more ... | "src">, any>' is not assignable to parameter of type 'InnerComponent<{ type: string; }>'.
Type 'StyledComponent<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "form" | ... 280 more ... | "src">, any>' is not assignable to type 'FunctionComponent<{ type: string; }>'.
Types of property 'propTypes' are incompatible.
Type 'WeakValidationMap<ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement> & Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "form" | ... 280 more ... | "src"> & { ...; }> | undefined' is not assignable to type 'WeakValidationMap<{ type: string; }> | undefined'.
Type 'WeakValidationMap<ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement> & Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "form" | ... 280 more ... | "src"> & { ...; }>' is not assignable to type 'WeakValidationMap<{ type: string; }>'.
Types of property 'type' are incompatible.
Type 'Validator<string | null | undefined> | undefined' is not assignable to type 'Validator<string> | undefined'.
Type 'Validator<string | null | undefined>' is not assignable to type 'Validator<string>'.
Type 'string | null | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
The text was updated successfully, but these errors were encountered:
Applying
withProps()
to a styled component yields the following type error:The text was updated successfully, but these errors were encountered: