/** * Makes the specified properties in a type optional. * @example type NotifyData = Optional * // returns: { eventName: string; object?: Observable } */ export type Optional = Omit & { [P in K]?: T[P] };