const arr = [ 'London', 'Berlin', ] as const; type Location = typeof arr[number];
Location
as const
arr
readonly ["London", "Berlin"]