way to get type of generic in ts code example Example: typescript generic type function identity<T>(arg: T): T { return arg; }Try