import { expectType } from 'tsd' ; import { MethodKeysOf } from '../..' ; class Test { public name : string = '' ; getName ( ) { return this . name ; } private getDoubleName ( ) { return this . name . repeat ( 2 ) ; } } expectType < MethodKeysOf < Test > > ( 'getName' ) ;