function identity<T>(arg: T): T { return arg; } let fun = identity<string>("hello"); console.log(fun); /*T is shorthand for Type, meaning "you can specify the data type later"*/