title: Using a type as a parameter Typescript
body: <p>how to use a type as a parameter in Typescript</p>
  <pre><code>type myType = {}
  const passingType = (t: Type) =&gt; {
      const x : t = {}
  }
  
  passingType(myType);
  
  </code></pre>
  <p>I get TS errors</p>
  <blockquote>
  <p>'t' refers to a value, but is being used as a type here. Did you mean 'typeof t'?</p>
  </blockquote>
  <p>and</p>
  <blockquote>
  <p>'myType' only refers to a type, but is being used as a value here.ts(2693)</p>
  </blockquote>
  <p>for the call</p>
  <p>any idea on how to accomplish this.</p>