title: Generate Tuple Type using a mapped Type
body: <p>Good morning,</p>
  <p>I'm trying to achieve the following,</p>
  <p>Create a type that will take the keys from the following object</p>
  <pre><code>const obj = {
     setName: () =&gt; void;
     setAge: () =&gt; void;
  }
  </code></pre>
  <p>And generate a Tuple type using a mapped type that makes</p>
  <pre><code>[ “setName”, “setAge” ]
  </code></pre>
  <p>I might be completely wrong here but for the mapped type I think this would work</p>
  <pre><code>type MyType&lt;T&gt; = {
    [P in keyof T]: T[P]
  }
  </code></pre>
  <p>But if T is a type from the object I showcased above, I would end up with the following type</p>
  <pre><code>type MappedType = {
      setName: () =&gt; void;
      setAge: () =&gt; void;
  }
  </code></pre>
  <p>But what I want is</p>
  <pre><code>type MappedType = [setName, setAge]
  </code></pre>
  <p>Any help is greatly appreciated.</p>