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
Actual behavior:
Type '{}' is not assignable to type 'IntrinsicAttributes & Settings & { children?: ReactNode; }'.
Type '{}' is not assignable to type 'Settings'.
Property 'total' is missing in type '{}'
The text was updated successfully, but these errors were encountered:
But, you should try Partial<Settings> instead of Settings. Right now, TypeScript does not have a good way of modelling default properties for something like React (see #16173).
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 2.4.2 / nightly (2.5.0-dev.201xxxxx)
There is a problem when I'm using default props with a typed properties interface.
Code
Expected behavior:
Use the default properties
Actual behavior:
Type '{}' is not assignable to type 'IntrinsicAttributes & Settings & { children?: ReactNode; }'.
Type '{}' is not assignable to type 'Settings'.
Property 'total' is missing in type '{}'
The text was updated successfully, but these errors were encountered: