Maps a type recursively and replace each non object type with the new type
type to map
type to map to for each non object type
Generated using TypeDoc
Maps a type recursively and replace each non object type with the new type