Code QuizIntermediate Generic Function Type Expression
Spotting a type parameter used before it is introduced.
Codetypescript
type Mapper = (value: T) => T;
const double: Mapper = (n: number) => n * 2;
console.log(double(5));
What is the bug in this code?