class Foo { public doSomething(){ return 5; } } let foo = new Foo(); let propertyNames = Object.getOwnPropertyNames(Object.getPrototypeOf(foo));