interface MyObject { foo: () => string; }