Things have changed. Re-download the Sample Bar Chart Repo, and modify barChart.ts as shown below.
interface BarChartDataPoint { value: PrimitiveValue; category: string; color: string; selectionId: powerbi.visuals.ISelectionId; };
selector: barDataPoint.selectionId.getSelector()