//// [inferentialTypingWithFunctionType.ts] declare function map(x: T, f: (s: T) => U): U; declare function identity(y: V): V; var s = map("", identity); //// [inferentialTypingWithFunctionType.js] var s = map("", identity);