title: How call callback in Typescript?
body: <p>I have declared function:</p>
  
  <pre><code> _translate(value: T, callback: (name: T) =&gt; T): void;
  </code></pre>
  
  <p>And function is:</p>
  
  <pre><code>public _translate(value: T, callback: T) {
      if (!this.translate) {
        callback(value);
      }
  }
  </code></pre>
  
  <p>How to call(use) it? I tried the foLlowing:</p>
  
  <pre><code>this._translate(value, function(data: T) {
     console.log(data);
  });
  </code></pre>
  
  <p>It does not work</p>