I have the following issue, "Cannot find name 'readonly'" when defining an interface with readonly properties. I have installed the following version of typescript: v 2.0.8 and I am using Visual Studio 2015.
Here is a sample:
TypeScript
interface Car {
readonly engine: string;
readonly model: string;
}
Any ideas will be appreciated.