title: How to fix "expected call-signature to have a typedef" error
body: <p>I have a switch case function inside my render JSX element that I am using in another const value based on the return values.</p>
  
  <p>I tried looking for a solution to my issue online but none of the answers I found are helping my issue, even after trying them on my code.</p>
  
  <pre><code>function carouselClass(transitionTypeValue: any) {
              switch(transitionTypeValue) {
                  //Different cases and their return values
              }
     }
  
     const classes = xyz(carouselClass(transitionType)) //Sample of where I'm using my switch function
  </code></pre>
  
  <p>The code runs fine on Typescript side but I get a linting error which says "typedef  expected call-signature: 'carouselClass' to have a typedef"</p>
  
  <p>I tried my best to give enough context, please let me know if more is required as this is my first time posting a question.</p>