how can i implement this:
type ActionNames = \'init\' | \'reset\'; type UnionToObj = {/* TODO HERE */} type Result = UnionToObj; //