-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
help wantedExtra attention is neededExtra attention is neededtype differenceAll about differences between Flow and TS typings (e.g. in React)All about differences between Flow and TS typings (e.g. in React)
Description
In RN’s upstream type, most of the properties are Maybe types. Whereas in DT’s React type they are all required properties. This means that a value with RN’s type cannot be assigned to a target that expects DT’s type.
I only came across 1 such case in Artsy’s codebase, which I solved locally with a utility type that removes all the Maybe variants. It is unclear if this issue structurally applies to RN projects or is more of an issue with e.g. Formik relying on HTML event types.
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededtype differenceAll about differences between Flow and TS typings (e.g. in React)All about differences between Flow and TS typings (e.g. in React)