export interface Car {
Model: string;
TopSpeed: number;
YearManufactured: number;
}
const FastestCarSpeed: Car.TopSpeed = 200;
At the moment, we are encountering an issue with Car.TopSpeed
:
We are unable to access 'Car.TopSpeed' because 'Car' is a type and not a namespace. Did you intend to access the type of the property 'TopSpeed' in 'Car' using 'Car["TopSpeed"]'?