Starting in Flow version 0.201, make an object type’s fields all optional using Partial<ObjType> (use instead of the unsafe $Shape), and make an object type’s optional fields required with Required<ObjType>. Also, you can now annotate a catch variable with mixed. Partial<T> The Partial utility type converts all of an object or…