Is it possible to get a union type with all type values from an interface in typescript?
For example, when an interface is given as
interface A {
a: string;
b: () => void;
c: number;
d: string;
e: 'something';
}
the result should be
type B = string | () => void | number | 'something';
I have no clue, how I would approach this problem, if it is even possible.