8 lines
241 B
TypeScript
8 lines
241 B
TypeScript
//// [inferentialTypingWithFunctionType.ts]
|
|
declare function map<T, U>(x: T, f: (s: T) => U): U;
|
|
declare function identity<V>(y: V): V;
|
|
|
|
var s = map("", identity);
|
|
|
|
//// [inferentialTypingWithFunctionType.js]
|
|
var s = map("", identity);
|