Given an union of types and array of type pairs to replace ([[string, number], [Date, null]]), return a new union replaced with the type pairs.
union of types
array of type pairs
[[string, number], [Date, null]]
type pairs