TypeScript and currying In functional programming you often want to apply a function partly. A simple example is a function add. It would be nice if we could use add like: var res2 = add(1, 3); // => 4 var add10To = add(10); var res = add10To(5); // => 15