I am encountering an error: "Cannot find name 'readonly'" while trying to define an interface with readonly properties. I have Typescript version 2.0.8 installed and I am working on Visual Studio 2015.
Below is a snippet of the code:
TypeScript
interface Car {
readonly engine: string;
readonly model: string;
}
If you have any suggestions or solutions, please feel free to share them. Your help is greatly appreciated.