title: How to fix Type 'AsymmetricMatcher<any>' is not assignable to type '() => void'. in jasmine/jest
body: <p>I have a object config where I send a function callback to a function.</p>
  <pre><code>test('should create a ComponentMockwith the needed config', () =&gt; {
          const config: MyConfig = {
             // more options
            myCallback: jasmine.anything()
          };
  
          sut.doYourThing(config);
  
          expect(ComponentMock.create).toHaveBeenCalledWith(config);
        });
  </code></pre>
  <p>The problem I have is that after an update to the latest jest/jasmine I get this error in <code>myCallback: jasmine.anything()</code>:</p>
  <blockquote>
  <p>How to fix Type 'AsymmetricMatcher' is not assignable to type '() =&gt; void'. in jasmine/jest</p>
  </blockquote>
  <p>If I ignore that line with <code>@ts-ignore</code> my test keeps working but I want to know why is the linter saying that and how to fix it since I really do not understand it.</p>