export type OptionalIfPossiblyUndefined = [T | undefined] extends [T] ? Partial> : Record;