Why doesn't this work?
class SampleData {
constructor(only: Array<string> = ['loadData0']) {
only.map(f => this[f]());
}
loadData0() {};
}
Error:
error TS2339: Property 'loadData0' does not exist on type 'typeof SampleData'.
