Is there a way to determine the type of an exported union type by extracting it from an array, as illustrated in the example above? How can this be achieved without directly referencing the non-exported Type
itself?
interface CurrentType {
a: string;
b: number;
}
type ExportedType = CurrentType | CurrentType[]
type DesiredType = CurrentType
// How do I access DesiredType based on CurrentType?