onyxblade / camille

Type-safe data exchange between front-end and Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intersection type making optional fields required

onyxblade opened this issue · comments

If a type has an optional field that ends with ?, when we use this type to construct an intersection type, this field is no longer optional in the resulting type, which is incorrect.

Indeed an Omit and Pick problem, fixed in 88c713b