This code example has a lot of detail:
interface Coordinate {
latitude: 40.7128;
longitude: -74.0060;
}
const location: Coordinate = {
latitude: 40.7128,
longitude: -74.0060,
};
// The inferred type would have been
// { x: number; y: number; }
Is there a way to utilize type inference in this scenario while also enforcing specific literal values?