e computed
type of a variable is the type of the variable as it's used in
context. Here's an example:</p>
<p><pre class="typescript-code"><span class="tm-kw">type</span> <span class="tm-typ"><span class="typeAliasName">Thing</span></span> = { <span class="tm-vr">name</span>: <span class="tm-str">'one'</span> | <span class="tm-str">'two'</span> };
<span class="tm-kw">function</span> <span class="tm-mth">process</span>(<span class="tm-vr">origin</span>: <span class="tm-typ"><span class="typeAliasName">Thing</