title: What is the Typescript type of state in React
body: <p>I get a tslint error when I use <code>any</code> to pass the <code>state</code> in my React application written in typescript to a function.</p>
  
  <blockquote>
    <p>no-any: Type declaration of 'any' loses type-safety. Consider replacing it with a more precise type.</p>
  </blockquote>
  
  <pre><code>class AssetDrillDown extends React.Component&lt;{}, IDetailsListAssetsState&gt; {
  
  constructor(props: {}) {
    super(props);
  
    this.state = {
      items: _items
    };
  }
  
  public componentDidMount(): void {
      this.getData(this);
  }
  
  public getData(that: any): void {
      // not relevant code
      that.setState({items: _items});
  }
  }
  </code></pre>
  
  <p>I would like to not use <code>any</code>, and use a type to fix this issue. How can I do that, please guide.</p>