Get array of string literal type values : <p>I need to get a full list of all possible values for a string literal.</p>

<pre><code>type YesNo = "Yes" | "No";
let arrayOfYesNo : Array&lt;string&gt; = someMagicFunction(YesNo); //["Yes", "No"]
</code></pre>

<p>Is there any way of achiving this?</p>
