You basically have two options here:
const string enum
You can define a const enum the following way:
const enum Relation {
profiles = 'profiles',
locations = 'locations',
change_history = 'change_history'
}
string literal types
type Relation = 'profiles' | 'locations' | 'change_history';
and like @guijob already pointed out this would be your interface (in both cases):
interface IParams {
id: number;
relations: Relation[];
}
Of course you could also inline this string literal type definition
relations: ('profiles' | 'locations' | 'change_history')[];
But be aware that values are not checked at runtime!
So if you add data from a resource that is not checked at compile time (like an API or user input) there is no guarantee for only those values being present.