export type WithRequired = T & { [P in K]-?: T[P]; }; export type WithPartial = Omit & { [P in K]?: T[P]; };