export type WithOptional = Pick, K> & Omit; export type WithRequired = Type & { [Property in Key]-?: Type[Property]; };