title: Typescript: How to say a variable is of type moment?
body: <p>I have an interface which has a callback and it takes two parameters which are moment object. Here is how it looks like</p>
  
  <pre><code>interface IProps {
    callback: (startDate: any, endDate: any) =&gt; void
  }
  </code></pre>
  
  <p>This is working for me but I want to be more specific and say that they are not any but moment like so which results in an error:</p>
  
  <pre><code>interface IProps {
    callback: (startDate: moment, endDate: moment) =&gt; void
  }
  </code></pre>
  
  <p>How can I fix this?</p>