Typycript Typ dynamiczny

// you can pass any type data for your use
function Person<T, U>(data): T | U { 
 return data
}

console.log(Person<string, number>("hello wordl"))
Restu Wahyu Saputra