In TypeScript, the const keyword cannot be used to declare class properties. Doing so causes the compiler to an error with \"A class member cannot have the \'co
const
You can mark properties with readonly modifier in your declaration:
readonly
export class MyClass { public static readonly MY_PUBLIC_CONSTANT = 10; private static readonly myPrivateConstant = 5; }
@see TypeScript Deep Dive book - Readonly