title: Typescript - how to declare an attribute name started with @?
body: <p>I'm trying to declare a type in TypeScript with an attribute named "@type" in order to correspond with some type from my Java API:</p>
  
  <pre><code>export interface Foo {
      id : string;
      name : string;
      @type: string;
  }
  </code></pre>
  
  <p>However, I'm getting a compiler error in my VS Code. </p>
  
  <p>Just to make sure it's not a JavaScript issue, I tried <code>let test = JSON.parse('{"@type" : "value"}')</code> in the browser console and it works fine.</p>
  
  <p>So how can I declare such a type with an attribute name started with @?</p>