typeofTypeParameter.ts(3,19): error TS2693: 'T' only refers to a type, but is being used as a value here. ==== typeofTypeParameter.ts (1 errors) ==== function f(x: T): T { var a: typeof x; var y: typeof T; ~ !!! error TS2693: 'T' only refers to a type, but is being used as a value here. return a; }