title: How to implement class constants?
body: <p>In TypeScript, the <code>const</code> keyword cannot be used to declare class properties. Doing so causes the compiler to an error with "A class member cannot have the 'const' keyword."</p>
  
  <p>I find myself in need to clearly indicate in code that a property should not be changed.  I want the IDE or compiler to error if I attempt to assign a new value to the property once it has been declared. How do you guys achieve this? </p>
  
  <p>I'm currently using a read-only property, but I'm new to Typescript (and JavaScript) and wonder whether there is a better way:</p>
  
  <pre><code>get MY_CONSTANT():number {return 10};
  </code></pre>
  
  <p>I'm using typescript 1.8. Suggestions?</p>
  
  <p>PS: I'm now using typescript 2.0.3, so I've accepted <a href="https://stackoverflow.com/a/37265481/6588498">David's answer</a></p>