title: Common toggle function doesn't work well with setState()
body: <p>I have a state which represents this interface:</p>
  
  <pre><code>StateInterface {
    variableOne: string;
    variableTwo: boolean;
    variableThree: boolean; 
    // ...
  }
  </code></pre>
  
  <p>And toggle function:</p>
  
  <pre><code>toggleFunction = (value: keyof StateInterface): void =&gt; {
    this.setState((state) =&gt; ({
      [value]: !state[value]
    }));
  };
  </code></pre>
  
  <p><strong>Not all variables are boolean in my state</strong></p>
  
  <p>But TSLint is telling me that the function is missing some properties.
  Is it possible to use only one toggle function for my state?</p>