I have the following:
type Original = {
checklist: FetchStates;
workflowFormInfo: FetchStates;
transitions: FetchStates;
}
type FinalResult = {checklist: FetchStates} | { workflowFormInfo: FetchStates} | { transitions: FetchStates}
How to transform the Original, into the final result such that I don't need to manually create every entry in both sides ?
Where FinalResult would be a "computed" type.
Thank you