In JS I'd do:
var o = {
foo: memoize(foo)
};
How do I do memoize an instance method in TypeScript similarly?
class C {
// How do I memoize this function?
public foo() :any {
}
}
I want to use a class to fit in with the idioms established in the existing TypeScript codebase.