I am using Kibana master branch to develop a new visualization
I am using Base Visualization Type like
visualizations.createBaseVisualization(getExampleVisDefinition());
I am getting this error when trying to render my visulization
Can someone tel what is the issue exactly ?
 Uncaught TypeError: this.visualization.render is not a function
This is the sample i use for my controller
import { VisParams, ExprVis } from '../../../../src/plugins/visualizations/public';
export function ExampleVisualizationProvider() {
  return class ExampleBaseVisualization {
    vis: ExprVis | undefined = undefined;
    el: HTMLElement | undefined = undefined;
    constructor(el: HTMLElement, vis: ExprVis) {
      this.el = el;
      this.vis = vis;
    }
    async render(visData: any, visParams: VisParams) {
      return 'done rendering';
    }
    destroy() {
      // eslint-disable-next-line no-console
      console.log('destroying');
      if (this.el !== undefined) {
        this.el.innerHTML = '';
      }
    }
  };
}