title: A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object
body: <p><code>Object.keys() as const</code> not working. How can I achieve this? (Suppose I don't know the content of the object, I don't know what keys does my object have)</p>
  <pre><code>const values = Object.keys(myObject) as const;
  </code></pre>
  <p>I need the <code>as const</code> to get string literal types</p>
  <pre><code>let name: typeof values[number];
  </code></pre>