I have a class with two properties
class X {
S1: string = "Hello"
S2: string = "World"
}
I would like to create a type that resolves to the union of the strings values: "Hello" | "World"
I was thinking of using something like the keyof operator, the only problem with that is that it yields string instead of the actual value.
type V = X[keyof X]
