1 2 3 4 5 6 7 8 9 10
class Foo { hello(): string { return "hello"; } } export function foo(): string { const f = new Foo(); return f.hello(); }