Can someone please help me understand how to retrieve keys from this union type?
The Value is currently being assigned as a never type.
I would like the Value to be either sno, key, or id
type Key = { sno: number } | { key: number } | { id: number };
type Value = keyof Key;