title: Adding Snapshot to the Test Case Level using Jasmine and TypeScript with Allure reporter
body: <p>I am getting the error while using allure reporter with jasmine and typescript.</p>
  
  <pre><code>  jasmine.getEnv().afterEach(done =&gt; {
              browser.takeScreenshot().then(function (png) {              
                  allure.createAttachment('Screenshot', function () {
                      return new Buffer(png, 'base64')
                  }, 'image/png')();
          done();
              });
          });
  </code></pre>
  
  <p>Here as typescript check the type , so i am getting the below error for the line</p>
  
  <pre><code>jasmine.getEnv().afterEach(done =&gt; 
  
  [ts] Argument of type '(done: any) =&gt; void' is not assignable to parameter of type '() =&gt; void'.
  (parameter) done: any
  </code></pre>
  
  <p>However, the same code works fine with Javascript and jasmine.</p>
  
  <p>So please help how to have the same code work for typescript and jasmine </p>