how to use T generic whith arrow function typescriipt code example Example: generic arrow function typescript const foo = <T extends unknown>(x: T) => x;