I'm currently working with a type called SomeType, which has several properties as shown below:
type SomeType = {
First: {
color: 'red' | 'blue'
},
Second: number,
Third: {
amount: number,
size: 'small' | 'large'
}[],
Fourth: string,
Fifth: string | number
}
Now, I need to create a new type similar to SomeType, but without hardcoding the structure like this:
type NewSomeType = {
First: any,
Second: any,
Third: any,
Fourth: any,
Fifth: any
}
I'm facing some challenges in researching how to achieve this. Any insights or tips would be greatly appreciated!