function identity<T>(arg: T): T { return arg; }
You Might Not Need TypeScript (or Static Types)
Eric Elliott

You’ve also switched from an arrow function to a function statement here. The fairer comparison is to:

const identity = <T>(arg: T) => arg;

It’s still “noisier,” but only by a few characters vs. the untyped version.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.