title: nameof keyword in Typescript
body: <p>As I have seen, there is no native <code>nameof</code>-keyword <a href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/nameof" rel="noreferrer">like C# has</a> built into TypeScript . However, for the same reasons this exists in C#, I want to be able to refer to property names in a type safe manner.</p>
  
  <p>This is especially useful in TypeScript when using jQuery plugins (<a href="http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/" rel="noreferrer">Bootstrap-Tagsinput</a>) or other libraries where the name of a property needs to be configured.</p>
  
  <p>It could look like:</p>
  
  <pre><code>const name: string = nameof(Console.log);
  // 'name' is now equal to "log"
  </code></pre>
  
  <p>The assignment of <code>name</code> should change too when <code>Console.log</code> got refactored and renamed.</p>
  
  <p><strong>What is the closest possible way of using such a feature in TypeScript as of now?</strong></p>