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
Allow to assign optional property into it equivalent number | undefined
Actual behavior:
TS2345: Argument of type 'typeof C' is not assignable to parameter of type 'ComponentClass<{ a: number | undefined; }>'.
Type 'C' is not assignable to type 'Component<{ a: number | undefined; }, ComponentState>'.
Types of property 'props' are incompatible.
Type 'Readonly<{ children?: ReactNode; }> & Readonly<F>' is not assignable to type 'Readonly<{ children?: ReactNode; }> & Readonly<{ a: number | undefined; }>'.
Type 'Readonly<{ children?: ReactNode; }> & Readonly<F>' is not assignable to type 'Readonly<{ a: number | undefined; }>'.
Property 'a' is optional in type 'Readonly<{ children?: ReactNode; }> & Readonly<F>' but required in type 'Readonly<{ a: number | undefined; }>'.
The text was updated successfully, but these errors were encountered:
Problem comes from
react-redux
package when using ```connect`` function.TypeScript Version: 2.6.2
Code
Expected behavior:
Allow to assign optional property into it equivalent
number | undefined
Actual behavior:
The text was updated successfully, but these errors were encountered: