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
TypeScript allows for declaration merging of interfaces, which appears to be something that people do to extend types for react-native-web, whereas this cannot be done with type aliases. So it might be preferable to convert to interfaces.
This might be something we just do selectively using overrides. Cases like RN’s ViewProps definitely make sense from an error reporting perspective too. Errors where type aliases are involved show the full typing, whereas an interface shows only an interned name.
TypeScript allows for declaration merging of interfaces, which appears to be something that people do to extend types for react-native-web, whereas this cannot be done with type aliases. So it might be preferable to convert to interfaces.
In case it makes things easier, perhaps as a first step, we could also create a temp type alias and use it to extend an empty interface with:
The text was updated successfully, but these errors were encountered: