Consider the following scenario:
type Individual = {
name: string,
age: number,
nicknames: string[],
}
Now, I aim to generate a new type based on the types of the properties within the Individual
type. The desired outcome is:
type IndividualTypes = string|number|string[]
Is there a method to accomplish this task?
I have made attempts with variations of utilizing keyof and typeof, but I have not been successful.