title: convert array of strings to object keys in typescript
body: <p>I have next array</p>
  <pre><code>const arrayData = ['a', 'b'] as const;
  </code></pre>
  <p>this array have next type ArrayType = ('a' | 'b')[];</p>
  <p>I want obtain object what coincide with next type:</p>
  <pre><code>type Type = {
    a: boolean,
    b: boolean,
  }
  </code></pre>
  <p>expected object</p>
  <pre><code>   const result : Type = {
       a: false,
       b: false,
     }
  </code></pre>
  <p>I want transform <code>arrayData</code> to <code>result</code></p>
  <pre><code>const result: Type = arrayData.reduce((r, key) =&gt; {
    return {
      ...r,
      key: false,
    }
  }, {});
  </code></pre>
  <p>but this code not have valid types</p>