Create a TypeScript generic type that maps arbitrarily named types to other types I’ve got some code that maps ‘to -> from’ types like this: